Commit 30909302 authored by Dylan Baker's avatar Dylan Baker

test/piglit_test: add ROOT_DIR variable

This variable always points to the root of the piglit directory, which
contains the tests and generated_tests directories.
Tested-by: Rafael Antognolli's avatarRafael Antognolli <rafael.antognolli@intel.com>
parent 30f00c12
......@@ -45,14 +45,16 @@ __all__ = [
'PiglitGLTest',
'PiglitBaseTest',
'CL_CONCURRENT',
'ROOT_DIR',
'TEST_BIN_DIR',
]
if 'PIGLIT_BUILD_DIR' in os.environ:
TEST_BIN_DIR = os.path.join(os.environ['PIGLIT_BUILD_DIR'], 'bin')
ROOT_DIR = os.environ['PIGLIT_BUILD_DIR']
else:
TEST_BIN_DIR = os.path.normpath(os.path.join(os.path.dirname(__file__),
'../../bin'))
ROOT_DIR = os.path.normpath(os.path.join(os.path.dirname(__file__), '../..'))
TEST_BIN_DIR = os.path.normpath(os.path.join(ROOT_DIR, 'bin'))
CL_CONCURRENT = (not sys.platform.startswith('linux') or
glob.glob('/dev/dri/render*'))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment