diff options
author | Dylan Baker <dylan@pnwbakers.com> | 2018-04-03 14:12:16 -0700 |
---|---|---|
committer | Dylan Baker <dylan@pnwbakers.com> | 2018-05-01 14:29:08 -0700 |
commit | 7e9d859eb58ba40671c38186a7b79cd37f83e9b0 (patch) | |
tree | 2924b58a972e5864e9d9ac204063a8afd9cf4422 /tests/cl.py | |
parent | ffc64348a8f518bcac495f4bb584260bc55ada91 (diff) |
framework/test: make CLProgramTester take relative paths
Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
Diffstat (limited to 'tests/cl.py')
-rw-r--r-- | tests/cl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/cl.py b/tests/cl.py index 2ab350245..56b3fc18d 100644 --- a/tests/cl.py +++ b/tests/cl.py @@ -14,7 +14,7 @@ from __future__ import ( import os from framework.profile import TestProfile -from framework.test.piglit_test import PiglitCLTest, CLProgramTester +from framework.test.piglit_test import PiglitCLTest, CLProgramTester, ROOT_DIR from framework import grouptools from .py_modules.constants import TESTS_DIR, GENERATED_TESTS_DIR @@ -111,7 +111,7 @@ def add_program_test_dir(group, dirpath): continue profile.test_list[grouptools.join(group, testname)] = CLProgramTester( - os.path.join(dirpath, filename)) + os.path.join(os.path.relpath(dirpath, ROOT_DIR), filename)) add_program_test_dir(grouptools.join('program', 'build'), |