[Piglit] [PATCH] framework/run.py: add option to not retry incomplete tests on resume

Mike Mason michael.w.mason at intel.com
Wed May 20 14:17:04 PDT 2015

This patch adds an option to not retry incomplete tests when resuming
a test run. This is especially useful when a failing test causes
a crash or reboot. Currently, that same test runs again when
attempting to resume the test run, resulting in the same crash or

Signed-off-by: Mike Mason <michael.w.mason at intel.com>
 framework/programs/run.py | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/framework/programs/run.py b/framework/programs/run.py
index 6053074..c6d7afe 100644
--- a/framework/programs/run.py
+++ b/framework/programs/run.py
@@ -313,6 +313,10 @@ def resume(input_):
                         help="Optionally specify a piglit config file to use. "
                              "Default is piglit.conf")
+    parser.add_argument("-n", "--no-retry",
+                        dest="no_retry",
+                        action="store_true",
+                        help="Do not retry incomplete tests")
     args = parser.parse_args(input_)
@@ -342,7 +346,7 @@ def resume(input_):
     # Don't re-run tests that have already completed, incomplete status tests
     # have obviously not completed.
     for name, result in results.tests.iteritems():
-        if result['result'] != 'incomplete':
+        if args.no_retry or result['result'] != 'incomplete':
     profile = framework.profile.merge_test_profiles(results.options['profile'])

More information about the Piglit mailing list