summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorMike Mason <michael.w.mason@intel.com>2015-05-20 14:17:04 -0700
committerDylan Baker <baker.dylan.c@gmail.com>2015-05-21 14:33:34 -0700
commit09a1ff00ce1dc6a9b1e742bb1c1ae09a3e001a34 (patch)
tree1b33a47f2e113a569598f3dc39cb0a7ba0676ac9 /framework
parent2f0af08224f6cbb466a80ec99ec2b66981682f6c (diff)
framework/run.py: add option to not retry incomplete tests on resume
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 reboot. Signed-off-by: Mike Mason <michael.w.mason@intel.com> Reviewed-by: Dylan Baker <dylanx.c.baker@intel.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/programs/run.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/framework/programs/run.py b/framework/programs/run.py
index 69975fbd6..2981ffada 100644
--- a/framework/programs/run.py
+++ b/framework/programs/run.py
@@ -311,6 +311,10 @@ def resume(input_):
type=argparse.FileType("r"),
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_)
_disable_windows_exception_messages()
@@ -340,7 +344,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':
opts.exclude_tests.add(name)
profile = framework.profile.merge_test_profiles(results.options['profile'])