From 3a04a1f76be27a0e0e11432c9a687e8849993b8d Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Thu, 10 Aug 2017 21:38:04 -0400 Subject: [PATCH] validate: Check subprocess return code in rendering tests --- tests/validate/geslaunch.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/validate/geslaunch.py b/tests/validate/geslaunch.py index 444eecc937..3d95fa454d 100644 --- a/tests/validate/geslaunch.py +++ b/tests/validate/geslaunch.py @@ -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: