[Piglit] [PATCH 15/18] exectest.py: Fix PiglitTest.is_skip()
Dylan Baker
baker.dylan.c at gmail.com
Fri Jul 11 11:32:35 PDT 2014
This fixes glx tests to skip on all platoforms except glx
Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
framework/exectest.py | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
diff --git a/framework/exectest.py b/framework/exectest.py
index 9f5cf1c..ec8fdd4 100644
--- a/framework/exectest.py
+++ b/framework/exectest.py
@@ -43,12 +43,6 @@ __all__ = ['Test',
'PiglitTest',
'TEST_BIN_DIR']
-# Platform global variables
-if 'PIGLIT_PLATFORM' in os.environ:
- PIGLIT_PLATFORM = os.environ['PIGLIT_PLATFORM']
-else:
- PIGLIT_PLATFORM = ''
-
if 'PIGLIT_BUILD_DIR' in os.environ:
TEST_BIN_DIR = os.path.join(os.environ['PIGLIT_BUILD_DIR'], 'bin')
else:
@@ -298,10 +292,12 @@ class PiglitTest(Test):
def is_skip(self):
""" Native Piglit-test specific skip checking
- If we are running on gbm don't run glean or glx- tests
+ If the platform for the run doesn't suppoprt glx (either directly as
+ glx or through the hybrid glx/xegl setup that is default), then skip
+ any glx specific tests.
"""
- if PIGLIT_PLATFORM == 'gbm':
+ if self.OPTS.env['PIGLIT_PLATFORM'] not in ['glx', 'gl=>glx,gles=>xegl']:
split_command = os.path.split(self._command[0])[1]
if 'glean' == split_command:
return True
--
2.0.0
More information about the Piglit
mailing list