Fixes resolution of relative paths to absolute paths. This will help keep 
piglit from crashing out when resume path is not within source path. This 
happens regularly when using distributed testing.
---
 piglit-run.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/piglit-run.py b/piglit-run.py
index 9713277..8da99a0 100755
--- a/piglit-run.py
+++ b/piglit-run.py
@@ -133,7 +133,7 @@ def main():
                        usage()
                if len(args) != 1:
                        usage()
-               resultsDir = args[0]
+               resultsDir = path.realpath(args[0])
 
                # Load settings from the old results JSON
                old_results = core.loadTestResults(resultsDir)
-- 
1.7.9.5

_______________________________________________
Piglit mailing list
Piglit@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to