mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-01 21:18:52 +00:00
validate: Do not check result furthers if alredy set as passing
This commit is contained in:
parent
33aae792f6
commit
f6bf92cbc9
1 changed files with 4 additions and 2 deletions
|
@ -89,6 +89,8 @@ class Test(Loggable):
|
||||||
pass
|
pass
|
||||||
|
|
||||||
def set_result(self, result, message="", error=""):
|
def set_result(self, result, message="", error=""):
|
||||||
|
self.debug("Setting result: %s (message: %s, error: %s", result,
|
||||||
|
message, error)
|
||||||
self.result = result
|
self.result = result
|
||||||
self.message = message
|
self.message = message
|
||||||
self.error_str = error
|
self.error_str = error
|
||||||
|
@ -101,7 +103,7 @@ class Test(Loggable):
|
||||||
if self.result == Result.TIMEOUT:
|
if self.result == Result.TIMEOUT:
|
||||||
self.set_result(Result.TIMEOUT, "Application timed out", "timeout")
|
self.set_result(Result.TIMEOUT, "Application timed out", "timeout")
|
||||||
elif self.process.returncode == 0:
|
elif self.process.returncode == 0:
|
||||||
self.result = Result.PASSED
|
self.set_result(Result.PASSED)
|
||||||
else:
|
else:
|
||||||
self.set_result(Result.FAILED,
|
self.set_result(Result.FAILED,
|
||||||
"Application returned %d" % (
|
"Application returned %d" % (
|
||||||
|
@ -244,7 +246,7 @@ class GstValidateTest(Test):
|
||||||
return ret + "]"
|
return ret + "]"
|
||||||
|
|
||||||
def check_results(self):
|
def check_results(self):
|
||||||
if self.result is Result.FAILED:
|
if self.result is Result.FAILED or self.result is Result.PASSED:
|
||||||
return
|
return
|
||||||
|
|
||||||
self.debug("%s returncode: %s", self, self.process.returncode)
|
self.debug("%s returncode: %s", self, self.process.returncode)
|
||||||
|
|
Loading…
Reference in a new issue