[Piglit] [PATCH 5/8] gbm: when using gbm, skip running glean tests

Jordan Justen jordan.l.justen at intel.com
Tue Oct 9 16:42:29 PDT 2012


glean can be modified to use waffle, and thus support gbm.
But in order to retain the multiple visuals testing for X,
the waffle API will need to be updated. Therefore, for now
we'll just skip glean with gbm.

Signed-off-by: Jordan Justen <jordan.l.justen at intel.com>
---
 framework/exectest.py |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/framework/exectest.py b/framework/exectest.py
index 7e6279a..81970e8 100644
--- a/framework/exectest.py
+++ b/framework/exectest.py
@@ -43,6 +43,7 @@ class ExecTest(Test):
 	def __init__(self, command):
 		Test.__init__(self)
 		self.command = command
+		self.split_command = os.path.split(self.command[0])[1]
 		self.env = {}
 
 		if isinstance(self.command, basestring):
@@ -161,6 +162,10 @@ class ExecTest(Test):
 		return results
 
 	def check_for_skip_scenario(self, command):
+		global PIGLIT_PLATFORM
+		if PIGLIT_PLATFORM == 'gbm':
+			if 'glean' == self.split_command:
+				return True
 		return False
 
 	def get_command_result(self, command, fullenv):
-- 
1.7.9.5



More information about the Piglit mailing list