def build_arguments(self): """Prepares the arguments for the executable used to run the test.""" GstValidateTest.build_arguments(self) self.set_sample_paths() # Pass the path to the scenario file as a positional argument. self.add_arguments(self._scenario.path)
def build_arguments(self): GstValidateTest.build_arguments(self) if self.options.mute: self.add_arguments(" --mute") self.set_sample_paths() self.add_arguments("-l", self.project.get_uri())
def check_results(self): if self.result in [Result.FAILED, Result.TIMEOUT]: GstValidateTest.check_results(self) return if self.scenario: orig_duration = min(long(self.scenario.get_duration()), long(self.media_descriptor.get_duration())) else: orig_duration = long(self.media_descriptor.get_duration()) res, msg = compare_rendered_with_original(orig_duration, self.dest_file) self.set_result(res, msg)
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)
def check_results(self): if self.result is Result.PASSED and self.scenario is None: res, msg = utils.compare_rendered_with_original(self.duration, self.dest_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.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", e) else: GstValidateTest.check_results(self)
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)
def build_arguments(self): GstValidateTest.build_arguments(self) self.set_sample_paths() self.add_arguments(self._scenario.path)
def build_arguments(self): GstValidateTest.build_arguments(self) self.set_rendering_info() self.add_arguments(self.uri, self.dest_file)
def build_arguments(self): GstValidateTest.build_arguments(self) self.add_arguments(self.pipeline_desc)