if self.scenario:
sent_eos = self.sent_eos_position()
if sent_eos is not None:
- if ((time.time() - sent_eos)) > 30:
+ t = time.time()
+ if ((t - sent_eos)) > 30:
if self.file_infos.get("file-info", "protocol") == Protocols.HLS:
self.set_result(Result.PASSED,
"""Got no EOS 30 seconds after sending EOS,
if self.scenario:
sent_eos = self.sent_eos_position()
if sent_eos is not None:
- if ((time.time() - sent_eos)) > 30:
+ t = time.time()
+ if ((t - sent_eos)) > 30:
if self.file_infos.get("file-info", "protocol") == Protocols.HLS:
self.set_result(Result.PASSED,
"""Got no EOS 30 seconds after sending EOS,
https://bugzilla.gnome.org/show_bug.cgi?id=723868""")
return Result.KNOWN_ERROR
+
return Result.FAILED
return self.get_current_size()
self.reporter = reporter
self.process = None
+ self.clean()
+
+ def clean(self):
self.message = ""
self.error_str = ""
self.time_taken = 0.0
else:
self.scenario = scenario
+ def clean(self):
+ Test.clean(self)
+ self._sent_eos_pos = None
+
def build_arguments(self):
if self.scenario is not None:
self.add_arguments("--set-scenario", self.scenario.name)
return Result.PASSED
+ def clean_tests(self):
+ for test in self.tests:
+ test.clean()
+
def needs_http_server(self):
return False
return True
+ def _clean_tests(self):
+ for tester in self.testers:
+ tester.clean_tests()
+
def run_tests(self):
if self.options.forever:
while self._run_tests():
- continue
+ self._clean_tests()
return False
else: