[Piglit] [PATCH] test_gleantest: make sure --quick is returned when set in GLOBAL_PARAMS

Timothy Arceri tarceri at itsqueeze.com
Fri May 19 06:04:59 UTC 2017


---
 unittests/framework/test/test_gleantest.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/unittests/framework/test/test_gleantest.py b/unittests/framework/test/test_gleantest.py
index b9122d2..3ff2b8c 100644
--- a/unittests/framework/test/test_gleantest.py
+++ b/unittests/framework/test/test_gleantest.py
@@ -46,20 +46,21 @@ def test_GLOBAL_PARAMS_assignment():
     If this test passes the GleanTest.command attributes will be the same in
     the instance created before the GLOBAL_PARAMS assignment and the one created
     after. A failure means the that GLOBAL_PARAMS are not being added to tests
     initialized before it is set.
 
     """
     test1 = GleanTest('basic')
     GleanTest.GLOBAL_PARAMS = ['--quick']
     test2 = GleanTest('basic')
     assert test1.command == test2.command
+    assert '--quick' in test1.command
 
 
 def test_global_params_setter():
     """Values from self.GLOBAL_ARGS are not pushed into self._command by a
     setter.
     """
     test = GleanTest('basic')
     GleanTest.GLOBAL_PARAMS = ['--quick']
     test.command += '-foo'
     assert '--quick' not in test._command
-- 
2.9.4



More information about the Piglit mailing list