From 3d04bd2b2bc2458194beb19dd43bee1ecabda979 Mon Sep 17 00:00:00 2001 From: Thibault Saunier Date: Fri, 4 Oct 2019 09:58:17 -0300 Subject: [PATCH] validate: Move to the new GstValidateEncodingTestInterface API --- tests/validate/geslaunch.py | 22 ++-------------------- 1 file changed, 2 insertions(+), 20 deletions(-) diff --git a/tests/validate/geslaunch.py b/tests/validate/geslaunch.py index 51daf0ef50..0aeca4e98f 100644 --- a/tests/validate/geslaunch.py +++ b/tests/validate/geslaunch.py @@ -224,26 +224,8 @@ class GESRenderTest(GESTest, GstValidateEncodingTestInterface): self.add_arguments("-f", profile, "-o", self.dest_file) 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: - if self.result == utils.Result.TIMEOUT: - missing_eos = False - try: - if utils.get_duration(self.dest_file) == self.project.get_duration(): - missing_eos = True - except Exception as e: - pass - - if missing_eos is True: - self.set_result(utils.Result.TIMEOUT, "The rendered file had right duration, MISSING EOS?\n", - "failure") - else: - GstValidateTest.check_results(self) + self.check_encoded_file() + return GstValidateTest.check_results(self) def get_current_value(self): size = self.get_current_size()