validate:launcher: Support retry on failure when using --n-runs

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1113>
This commit is contained in:
Thibault Saunier 2021-10-07 19:42:10 -03:00 committed by GStreamer Marge Bot
parent f2efd3b133
commit 4762b138b6

View file

@ -2194,7 +2194,7 @@ class _TestsLauncher(Loggable):
res = True
for r in range(self.options.n_runs):
printc("-> Iteration %d" % r, end='\r')
if not self._run_tests():
if not self._run_tests(retry_on_failures=self.options.retry_on_failures):
res = False
printc("ERROR", Colors.FAIL, end="\r")
else: