mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 08:11:16 +00:00
validate: Do not exit when we can not discover a result file
Loggable.error actually exit the process, it is not what we want! + Avoid a backtrace
This commit is contained in:
parent
4814110a86
commit
e2d8096cb7
1 changed files with 5 additions and 1 deletions
|
@ -562,6 +562,10 @@ class GstValidateEncodingTestInterface(object):
|
|||
def check_encoded_file(self):
|
||||
result_descriptor = GstValidateMediaDescriptor.new_from_uri(
|
||||
self.dest_file)
|
||||
if result_descriptor is None:
|
||||
return (Result.FAILED, "Could not discover encoded file %s"
|
||||
% self.dest_file)
|
||||
|
||||
duration = result_descriptor.get_duration()
|
||||
orig_duration = self.media_descriptor.get_duration()
|
||||
tolerance = self._duration_tolerance
|
||||
|
@ -1182,7 +1186,7 @@ class GstValidateMediaDescriptor(MediaDescriptor):
|
|||
if verbose:
|
||||
printc("Result: Failed", Colors.FAIL)
|
||||
else:
|
||||
loggable.error("Exception: %s", e)
|
||||
loggable.warning("GstValidateMediaDescriptor", "Exception: %s" % e)
|
||||
return None
|
||||
|
||||
if verbose:
|
||||
|
|
Loading…
Reference in a new issue