mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-28 17:25:05 +00:00
validate: tools: Concider timeouts as errors when printing tests
This commit is contained in:
parent
dac5b38a4d
commit
1f3432a33e
|
@ -59,9 +59,9 @@ class Test(Loggable):
|
||||||
string = self.classname
|
string = self.classname
|
||||||
if self.result != Result.NOT_RUN:
|
if self.result != Result.NOT_RUN:
|
||||||
string += ": " + self.result
|
string += ": " + self.result
|
||||||
if self.result == Result.FAILED:
|
if self.result in [Result.FAILED, Result.TIMEOUT]:
|
||||||
string += "'%s'\n You can reproduce with: %s" \
|
string += " '%s'\n You can reproduce with: %s" \
|
||||||
% (self.message, self.command)
|
% (self.message, self.command)
|
||||||
|
|
||||||
return string
|
return string
|
||||||
|
|
||||||
|
|
|
@ -64,6 +64,8 @@ def printc (message, color="", title=False):
|
||||||
if hasattr(message, "result") and color == '':
|
if hasattr(message, "result") and color == '':
|
||||||
if message.result == Result.FAILED:
|
if message.result == Result.FAILED:
|
||||||
color = Colors.FAIL
|
color = Colors.FAIL
|
||||||
|
elif message.result == Result.TIMEOUT:
|
||||||
|
color = Colors.WARNING
|
||||||
elif message.result == Result.PASSED:
|
elif message.result == Result.PASSED:
|
||||||
color = Colors.OKGREEN
|
color = Colors.OKGREEN
|
||||||
else:
|
else:
|
||||||
|
|
Loading…
Reference in a new issue