v2: - replace config name bindir with path (chadv)

Signed-off-by: Dylan Baker <[email protected]>
---
 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

_______________________________________________
Piglit mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/piglit

Reply via email to