validate:launcher: Make sure TIMEOUTs do not get converted to ERROR

This was a regression introduced in c0e3d2e4f1
This commit is contained in:
Thibault Saunier 2015-03-09 18:41:54 +01:00
parent 87064b6994
commit 08d8e01f21

View file

@ -180,8 +180,7 @@ class Test(Loggable):
self.set_result(Result.PASSED)
else:
self.set_result(Result.FAILED,
"Application returned %d" % (
self.process.returncode))
"Application returned %d" % (self.process.returncode))
def get_current_value(self):
"""
@ -427,6 +426,7 @@ class GstValidateTest(Test):
self.debug("%s returncode: %s", self, self.process.returncode)
if self.result == Result.TIMEOUT:
self.set_result(Result.TIMEOUT, "Application timed out", "timeout")
return
criticals = self.get_validate_criticals_errors()
if self.process.returncode == 139: