Commit 774e070b authored by Dylan Baker's avatar Dylan Baker

oglconform.py: Use config file instead of symlink

Instead of symlinking oglconform into the bin/ dir, edit piglit.conf and
set the path key under the oglconform to the root of the oglconform dir.

v2: - change config key 'bindir' to 'path' (chadv)
Reviewed-by: default avatarChad Versace <chad.versace@linux.intel.com>
Signed-off-by: Dylan Baker's avatarDylan Baker <baker.dylan.c@gmail.com>
parent 443abf5a
......@@ -10,3 +10,7 @@
[igt]
; Set bindir equal to the absolute root of the igt directory
;path=/home/user/src/igt
[oglconform]
; Set bindir equal to the absolute root of the oglconform directory
;path=/home/usr/src/oglconform
......@@ -26,13 +26,14 @@ import re
import sys
import subprocess
import framework.core
from framework.profile import TestProfile
from framework.exectest import Test, TEST_BIN_DIR
from framework.exectest import Test
from os import path
__all__ = ['profile']
bin_oglconform = path.join(TEST_BIN_DIR, 'oglconform')
bin_oglconform = framework.core.PIGLIT_CONFIG.get('oglconform', 'path')
if not os.path.exists(bin_oglconform):
sys.exit(0)
......
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