Ejemplo n.º 1
0
    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)
Ejemplo n.º 2
0
    def check_results(self):
        if self.result in [Result.FAILED, Result.TIMEOUT] or self.process.returncode != 0:
            GstValidateTest.check_results(self)
            return

        res, msg = self.check_encoded_file()
        self.set_result(res, msg)
Ejemplo n.º 3
0
    def check_results(self):
        if self.result in [Result.FAILED, Result.TIMEOUT] or \
                self.process.returncode != 0:
            GstValidateTest.check_results(self)
            return

        res, msg = self.check_encoded_file()
        self.set_result(res, msg)
Ejemplo n.º 4
0
    def check_results(self):
        if self.result in [Result.PASSED, Result.NOT_RUN] and self.scenario is None:
            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 add right duration, MISSING EOS?\n",
                                    "failure")
            else:
                GstValidateTest.check_results(self)
Ejemplo n.º 5
0
 def check_results(self):
     self.check_encoded_file()
     return GstValidateTest.check_results(self)