[Piglit] [PATCH 3/5] summary_tests.py: Add tests for enabled and disabled sets

Dylan Baker baker.dylan.c at gmail.com
Mon Mar 17 12:06:12 PDT 2014


Tests that are (notrun||skip) -> !(notrun||skip) should be marked as
enabled, and the converse should be marked as disabled

Signed-off-by: Dylan Baker <baker.dylan.c at gmail.com>
---
 framework/tests/summary_tests.py | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/framework/tests/summary_tests.py b/framework/tests/summary_tests.py
index e6d996e..d6856a9 100644
--- a/framework/tests/summary_tests.py
+++ b/framework/tests/summary_tests.py
@@ -44,6 +44,10 @@ def test_summary_add_to_set():
                                ('pass', 'warn', 'regressions'),
                                ('dmesg-fail', 'warn', 'changes'),
                                ('dmesg-warn', 'crash', 'problems'),
+                               ('notrun', 'pass', 'enabled'),
+                               ('skip', 'dmesg-warn', 'enabled'),
+                               ('fail', 'notrun', 'disabled'),
+                               ('crash', 'skip', 'disabled'),
                                ('skip', 'skip', 'skipped')]:
         check_sets.description = "{0} -> {1} should be added to {2}".format(
                 ostat, nstat, set_)
-- 
1.9.0



More information about the Piglit mailing list