From e1625da9ed185ac281a880b9c2732b6e95adaae2 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 11 Apr 2019 10:31:07 -0400 Subject: [PATCH] validate:launcher: Print the number of times the test was run when --forever --- validate/launcher/baseclasses.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/validate/launcher/baseclasses.py b/validate/launcher/baseclasses.py index 6c0709504a..2c86975328 100644 --- a/validate/launcher/baseclasses.py +++ b/validate/launcher/baseclasses.py @@ -1990,6 +1990,7 @@ class _TestsLauncher(Loggable): self._stop_server() def run_tests(self): + r = 0 try: self._start_server() if self.options.forever: @@ -2020,6 +2021,8 @@ class _TestsLauncher(Loggable): else: return self._run_tests(retry_on_failures=self.options.retry_on_failures) finally: + if self.options.forever: + printc("\n-> Ran %d times" % r) if self.httpsrv: self.httpsrv.stop() if self.vfb_server: