Commit 7e9d859e authored by Dylan Baker's avatar Dylan Baker

framework/test: make CLProgramTester take relative paths

Tested-by: Rafael Antognolli's avatarRafael Antognolli <>
parent ffc64348
......@@ -226,5 +226,5 @@ class CLProgramTester(PiglitCLTest):
def command(self):
command = super(CLProgramTester, self).command
command.insert(1, self.filename)
command.insert(1, os.path.join(ROOT_DIR, self.filename))
return command
......@@ -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):
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'),
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment