[Piglit] [Patch v2 2/4] xts.py: Use piglit.conf to set bindir
Dylan Baker
baker.dylan.c at gmail.com
Mon Jul 7 16:20:36 PDT 2014
v2: - replace config name bindir with path (chadv)
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..bff3cfe 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
+;path=/home/user/src/xts
diff --git a/tests/xts.py b/tests/xts.py
index efed504..7ba59f1 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', 'path')
class XTSProfile(TestProfile):
--
2.0.0
More information about the Piglit
mailing list