[Piglit] [PATCH 05/35] framework/test: expose required and excluded platforms

Dylan Baker dylan at pnwbakers.com
Wed Apr 4 22:26:53 UTC 2018


These need to be exposed for serialization.
---
 framework/test/piglit_test.py | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/framework/test/piglit_test.py b/framework/test/piglit_test.py
index 3d5b156..ef3bfdc 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
-- 
git-series 0.9.1


More information about the Piglit mailing list