mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 12:15:19 +00:00
validate: launcher: Add a argument to avoid rereuning flaky tests
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3122>
This commit is contained in:
parent
1577911d75
commit
f3c162cc85
2 changed files with 3 additions and 1 deletions
|
@ -2176,7 +2176,7 @@ class _TestsLauncher(Loggable):
|
||||||
self.reporter.after_test(test)
|
self.reporter.after_test(test)
|
||||||
return False
|
return False
|
||||||
|
|
||||||
if retry_on_failures or test.max_retries:
|
if retry_on_failures or test.max_retries and not self.options.no_retry_on_failures:
|
||||||
if not self.options.redirect_logs:
|
if not self.options.redirect_logs:
|
||||||
test.copy_logfiles()
|
test.copy_logfiles()
|
||||||
to_retry.append(test)
|
to_retry.append(test)
|
||||||
|
|
|
@ -522,6 +522,8 @@ class LauncherConfig(Loggable):
|
||||||
" at the same time")
|
" at the same time")
|
||||||
parser.add_argument('--retry-on-failures', dest="retry_on_failures", action="store_true",
|
parser.add_argument('--retry-on-failures', dest="retry_on_failures", action="store_true",
|
||||||
help="Re-try tests that produce unexpected results")
|
help="Re-try tests that produce unexpected results")
|
||||||
|
parser.add_argument('--no-retry-on-failures', dest="no_retry_on_failures", action="store_true",
|
||||||
|
help="Disable retrying on failure, event for known to be flaky tests.")
|
||||||
parser.add_argument('--html', dest="html", action="store_true",
|
parser.add_argument('--html', dest="html", action="store_true",
|
||||||
help="Write logs as html")
|
help="Write logs as html")
|
||||||
dir_group = parser.add_argument_group(
|
dir_group = parser.add_argument_group(
|
||||||
|
|
Loading…
Reference in a new issue