[Piglit] [PATCH 2/2] all.tests: Normalize the generated test dir.

jfonseca at vmware.com jfonseca at vmware.com
Wed Jun 26 07:23:56 PDT 2013


From: José Fonseca <jfonseca at vmware.com>

That is, pass "generated_tests/foo" arguments instead of
"tests/../generated_tests/foo", therefore saving screen real-estate on
the test logs.
---
 tests/all.tests | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/all.tests b/tests/all.tests
index df3c676..3b8e09f 100644
--- a/tests/all.tests
+++ b/tests/all.tests
@@ -23,11 +23,11 @@ testsDir = path.dirname(__file__)
 # Find the generated_tests directory, by looking either in
 # $PIGLIT_BUILD_DIR (if that environment variable exists) or in the
 # parent directory of the directory containing this file.
-generatedTestDir = os.path.join(
+generatedTestDir = os.path.normpath(os.path.join(
 	os.environ.get(
 		'PIGLIT_BUILD_DIR',
 		os.path.join(testsDir, '..')),
-	'generated_tests')
+	'generated_tests'))
 
 # Quick wrapper for PlainExecTest for our usual concurrent args.
 def plain_test(args):
-- 
1.8.1.2



More information about the Piglit mailing list