[Piglit] [PATCH 4/4] oglconform.py: Use config file instead of symlink
Dylan Baker
baker.dylan.c at gmail.com
Mon Jun 30 16:53:22 PDT 2014
Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
piglit.conf.example | 4 ++++
tests/oglconform.py | 5 +++--
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/piglit.conf.example b/piglit.conf.example
index 68dbc20..39eab2c 100644
--- a/piglit.conf.example
+++ b/piglit.conf.example
@@ -10,3 +10,7 @@
[igt]
; Set bindir equal to the absolute root of the igt directory
;bindir=/home/user/src/igt
+
+[oglconform]
+; Set bindir equal to the absolute root of the oglconform directory
+;bindir=/home/usr/src/oglconform
diff --git a/tests/oglconform.py b/tests/oglconform.py
index 1d40d2a..1af52d0 100644
--- a/tests/oglconform.py
+++ b/tests/oglconform.py
@@ -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', 'bindir')
if not os.path.exists(bin_oglconform):
sys.exit(0)
--
2.0.0
More information about the Piglit
mailing list