validate: Check subprocess return code in rendering tests
authorThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 11 Aug 2017 01:38:04 +0000 (21:38 -0400)
committerThibault Saunier <thibault.saunier@osg.samsung.com>
Fri, 11 Aug 2017 01:38:04 +0000 (21:38 -0400)
tests/validate/geslaunch.py

index 444eecc..3d95fa4 100644 (file)
@@ -184,6 +184,9 @@ class GESRenderTest(GESTest, GstValidateEncodingTestInterface):
 
     def check_results(self):
         if self.result in [Result.PASSED, Result.NOT_RUN] and self.scenario is None:
+            if self.process.returncode != 0:
+                return super().check_results()
+
             res, msg = self.check_encoded_file()
             self.set_result(res, msg)
         else: