Commit 443abf5a authored by Dylan Baker's avatar Dylan Baker
Browse files

igt: use piglit.conf instead of a symlink

Instead of symlinking igt into the bin/ directory, edit piglit.conf and
set the path key in the igt section to the root of intel-gpu-tools

v2: - change config key 'bindir' to 'path' (chadv)
Reviewed-by: default avatarChad Versace <>
Signed-off-by: Dylan Baker's avatarDylan Baker <>
parent 27556761
......@@ -6,3 +6,7 @@
; Set bindir equal to the root of the xts directory
; Set bindir equal to the absolute root of the igt directory
......@@ -33,8 +33,9 @@ import errno
from datetime import datetime
from os import path
import framework.core
from framework.profile import TestProfile
from framework.exectest import Test, TEST_BIN_DIR
from framework.exectest import Test
__all__ = ['profile']
......@@ -67,12 +68,9 @@ def checkEnvironment():
if 'IGT_TEST_ROOT' in os.environ:
igtTestRoot = os.environ['IGT_TEST_ROOT']
# Chase the piglit/bin/igt symlink to find where the tests really live.
if os.path.exists(path.join(TEST_BIN_DIR, 'igt')):
igtTestRoot = path.join(path.realpath(path.join(TEST_BIN_DIR, 'igt')),
igtTestRoot = ''
igtTestRoot = os.path.join(framework.core.PIGLIT_CONFIG.get('igt', 'path'),
assert os.path.exists(igtTestRoot)
# check for the test lists
if not (os.path.exists(os.path.join(igtTestRoot, 'single-tests.txt'))
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