summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorDylan Baker <dylan@pnwbakers.com>2018-03-26 11:59:20 -0700
committerDylan Baker <dylan@pnwbakers.com>2018-05-01 14:27:43 -0700
commit91b04a67ed64fcda3449bffe78dc9780c49f1c3e (patch)
treefaaddf03acd03ac86a0fec552921a8f6677516b6 /framework
parentdd460e1313dcb7b0ff5ab9036c6cb6ab07ae35d3 (diff)
framework/test: expose required and excluded platforms
These need to be exposed for serialization. Tested-by: Rafael Antognolli <rafael.antognolli@intel.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/test/piglit_test.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/framework/test/piglit_test.py b/framework/test/piglit_test.py
index 3d5b156a5..ef3bfdc5d 100644
--- a/framework/test/piglit_test.py
+++ b/framework/test/piglit_test.py
@@ -137,13 +137,13 @@ class PiglitGLTest(WindowResizeMixin, PiglitBaseTest):
if not require_platforms or set(require_platforms).issubset(
set(core.PLATFORMS)):
- self.__require_platforms = require_platforms or []
+ self.require_platforms = require_platforms or []
else:
raise Exception("Error: require_platform is not valid")
if (not exclude_platforms or
set(exclude_platforms).issubset(set(core.PLATFORMS))):
- self.__exclude_platforms = exclude_platforms or []
+ self.exclude_platforms = exclude_platforms or []
else:
raise Exception("Error: exclude_platforms is not valid")
@@ -156,16 +156,16 @@ class PiglitGLTest(WindowResizeMixin, PiglitBaseTest):
"""
platform = options.OPTIONS.env['PIGLIT_PLATFORM']
- if self.__require_platforms and platform not in self.__require_platforms:
+ if self.require_platforms and platform not in self.require_platforms:
raise TestIsSkip(
'Test requires one of the following platforms "{}" '
'but the platform is "{}"'.format(
- self.__require_platforms, platform))
- elif self.__exclude_platforms and platform in self.__exclude_platforms:
+ self.require_platforms, platform))
+ elif self.exclude_platforms and platform in self.exclude_platforms:
raise TestIsSkip(
'Test cannot be run on any of the following platforms "{}" '
'and the platform is "{}"'.format(
- self.__exclude_platforms, platform))
+ self.exclude_platforms, platform))
super(PiglitGLTest, self).is_skip()
@PiglitBaseTest.command.getter