[Piglit] [PATCH 2/4] xts.py: Use piglit.conf to set bindir
Dylan Baker
baker.dylan.c at gmail.com
Mon Jun 30 16:53:20 PDT 2014
Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
piglit.conf.example | 3 +++
tests/xts.py | 5 +++--
2 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/piglit.conf.example b/piglit.conf.example
index 72ee1ef..3c1fe63 100644
--- a/piglit.conf.example
+++ b/piglit.conf.example
@@ -3,3 +3,6 @@
;opencv_test_ocl_bindir=/home/user/opencv/build/bin
;opencv_workdir=/home/user/opencv/samples/c/
;
+[xts]
+; Set bindir equal to the root of the xts directory
+;bindir=/home/user/src/xts
diff --git a/tests/xts.py b/tests/xts.py
index efed504..6084ea4 100644
--- a/tests/xts.py
+++ b/tests/xts.py
@@ -28,12 +28,13 @@ import re
import sys
import subprocess
import itertools
+import framework.core
from framework.profile import TestProfile
-from framework.exectest import Test, TEST_BIN_DIR
+from framework.exectest import Test
__all__ = ['profile']
-X_TEST_SUITE = os.path.join(TEST_BIN_DIR, 'xtest')
+X_TEST_SUITE = framework.core.PIGLIT_CONFIG.get('xts', 'bindir')
class XTSProfile(TestProfile):
--
2.0.0
More information about the Piglit
mailing list