[Piglit] [PATCH 29/35] fix asmparser test serialization for out of tree builds

Dylan Baker dylan at pnwbakers.com
Wed Apr 4 22:27:17 UTC 2018


---
 tests/glslparser.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/glslparser.py b/tests/glslparser.py
index b7de9f6..fe2b3c5 100644
--- a/tests/glslparser.py
+++ b/tests/glslparser.py
@@ -59,7 +59,7 @@ for basedir in [TESTS_DIR, GENERATED_TESTS_DIR]:
             'asmparsertest', os.path.relpath(dirpath, _basedir)))
         type_ = os.path.basename(dirpath)
 
-        dirname = os.path.relpath(dirpath, ROOT_DIR)
+        dirname = os.path.relpath(dirpath, os.path.join(basedir, '..'))
         for filename in filenames:
             if not os.path.splitext(filename)[1] == '.txt':
                 continue
-- 
git-series 0.9.1


More information about the Piglit mailing list