mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
validate:launcher: Do not print time spent if the testsuite never started
This commit is contained in:
parent
2dc7dd1257
commit
1055540d55
1 changed files with 5 additions and 4 deletions
|
@ -98,10 +98,11 @@ class Reporter(Loggable):
|
||||||
print("\n")
|
print("\n")
|
||||||
lenstat = (len("Statistics") + 1)
|
lenstat = (len("Statistics") + 1)
|
||||||
printc("Statistics:\n%s" % (lenstat * "-"), Colors.OKBLUE)
|
printc("Statistics:\n%s" % (lenstat * "-"), Colors.OKBLUE)
|
||||||
printc("\n%sTotal time spent: %s seconds\n" %
|
if self._start_time > 0:
|
||||||
((lenstat * " "), datetime.timedelta(
|
printc("\n%sTotal time spent: %s seconds\n" %
|
||||||
seconds=(time.time() - self._start_time))),
|
((lenstat * " "), datetime.timedelta(
|
||||||
Colors.OKBLUE)
|
seconds=(time.time() - self._start_time))),
|
||||||
|
Colors.OKBLUE)
|
||||||
printc("%sPassed: %d" %
|
printc("%sPassed: %d" %
|
||||||
(lenstat * " ", self.stats["passed"]), Colors.OKGREEN)
|
(lenstat * " ", self.stats["passed"]), Colors.OKGREEN)
|
||||||
printc("%sFailed: %d" %
|
printc("%sFailed: %d" %
|
||||||
|
|
Loading…
Reference in a new issue