[Piglit] [PATCH 01/20] DO NOT COMMIT THIS PATCH UPSTREAM

Dylan Baker baker.dylan.c at gmail.com
Sat Jun 14 08:05:10 PDT 2014


break Environment for testing purposes

This is a proof of concept patch for the wrapper object in
framework/tests/utils.py, not meant to be committed to upstream

To demonstrate check out this patch and run:
nosetests framework/tests/core_tests.py

what you'll see is something like:
'Test that PiglitJSONEncoder initializes'

if you run:
nosetests framework/tests/core_tests.py -v
you'll see however that it's Environment that is broken.

If you run this series with this patch at the tip, you'll see that
Environment is correctly marked as broken
---
 framework/core.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/framework/core.py b/framework/core.py
index cd72956..a0a2424 100644
--- a/framework/core.py
+++ b/framework/core.py
@@ -353,6 +353,7 @@ class Environment:
         self.valgrind = valgrind
         self.dmesg = dmesg
         self.verbose = verbose
+        self.foog = foob
 
         """
         The filter lists that are read in should be a list of string objects,
-- 
2.0.0



More information about the Piglit mailing list