[Piglit] [PATCH 2/2] framework/core.py: fix path resolution when loading test results.

Kenney Phillis kphillisjr at gmail.com
Mon Apr 29 08:50:15 PDT 2013


This has two main improvements that can be seen.
1) Relative paths can be used in lists files. This works great since it means
that simpler scripts can be used to generate the list file itself.
2) Relative paths can be specified at all stages and it will not cause the
scripts to break
---
 framework/core.py |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/framework/core.py b/framework/core.py
index 6a3b97a..14b9e96 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -607,7 +607,8 @@ def loadTestProfile(filename):
 		raise Exception('Could not read tests profile')
 	return ns['profile']
 
-def loadTestResults(path):
+def loadTestResults(relativepath):
+	path = os.path.realpath(relativepath)
 	if os.path.isdir(path):
 		filepath = os.path.join(path, 'main')
 	else:
-- 
1.7.9.5



More information about the Piglit mailing list