[Piglit] [PATCH 4/6] framework: remove _DISABLED variable in opengl.py

Brian Paul brianp at vmware.com
Fri Oct 13 04:23:08 UTC 2017


Just to simplify the code.
---
 framework/test/opengl.py | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/framework/test/opengl.py b/framework/test/opengl.py
index 81de933..94d2f77 100644
--- a/framework/test/opengl.py
+++ b/framework/test/opengl.py
@@ -37,9 +37,6 @@ __all__ = [
     'FastSkipMixin',
 ]
 
-# An environment variable that when set to true disables the FastSkipMixin by
-# stubbing it out
-_DISABLED = bool(os.environ.get('PIGLIT_NO_FAST_SKIP', False))
 
 
 class FastSkip(object):
@@ -252,7 +249,7 @@ class FastSkipMixinDisabled(object):
 
 # Shadow the real FastSkipMixin with the Disabled version if
 # PIGLIT_NO_FAST_SKIP is truthy
-if _DISABLED:
+if bool(os.environ.get('PIGLIT_NO_FAST_SKIP', False)):
     warnings.warn('Fast Skipping Disabled')
     # TODO: we can probably get rid of the FastSkipMixinDisabled and just rely
     # on the FastSkipDisabled
-- 
1.9.1



More information about the Piglit mailing list