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 <>
parent 30f00c12
......@@ -45,14 +45,16 @@ __all__ = [
if 'PIGLIT_BUILD_DIR' in os.environ:
TEST_BIN_DIR = os.path.join(os.environ['PIGLIT_BUILD_DIR'], 'bin')
TEST_BIN_DIR = os.path.normpath(os.path.join(os.path.dirname(__file__),
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
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