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

Dylan Baker baker.dylan.c at gmail.com
Thu May 21 14:37:55 PDT 2015


I've pushed this to master.

Thanks!

On Wed, May 20, 2015 at 02:17:04PM -0700, Mike Mason wrote:
> 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 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_):
>                          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()
>  
> @@ -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':
>              opts.exclude_tests.add(name)
>  
>      profile = framework.profile.merge_test_profiles(results.options['profile'])
> -- 
> 1.9.1
> 
> _______________________________________________
> Piglit mailing list
> Piglit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/piglit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 473 bytes
Desc: Digital signature
URL: <http://lists.freedesktop.org/archives/piglit/attachments/20150521/6acb29ed/attachment-0001.sig>


More information about the Piglit mailing list