[Piglit] [PATCH] framework/summary.py: Fix path resolution by using relative paths.
Kenney Phillis
kphillisjr at gmail.com
Tue Aug 20 20:25:34 PDT 2013
Fixes problems with path resolution when files change location.
NOTE: This patch is probably not be PEP8 Compliant.
---
framework/summary.py | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/framework/summary.py b/framework/summary.py
index 35500bf..3929fd1 100644
--- a/framework/summary.py
+++ b/framework/summary.py
@@ -522,7 +522,10 @@ class Summary:
time=each.time_elapsed,
options=each.options,
glxinfo=each.glxinfo,
- lspci=each.lspci))
+ lspci=each.lspci,
+ index=
+ path.relpath(index,
+ path.join(destination, each.name))))
file.close()
# Then build the individual test results
@@ -548,7 +551,7 @@ class Summary:
traceback=value.get('traceback', 'None'),
command=value.get('command', 'None'),
css=path.relpath(resultCss, tPath),
- index=index))
+ index=path.relpath(index, path.join(destination,each.name))))
file.close()
# Finally build the root html files: index, regressions, etc
--
1.7.9.5
More information about the Piglit
mailing list