validate:launcher: Properly set error message when sending EOS did not work
authorThibault Saunier <tsaunier@gnome.org>
Fri, 25 Apr 2014 11:19:19 +0000 (13:19 +0200)
committerThibault Saunier <tsaunier@gnome.org>
Fri, 25 Apr 2014 12:51:28 +0000 (14:51 +0200)
validate/tools/launcher/apps/gst-validate.py
validate/tools/launcher/baseclasses.py

index 9f690e9..e9bb03e 100644 (file)
@@ -220,6 +220,8 @@ class GstValidateLaunchTest(GstValidateTest):
                                         https://bugzilla.gnome.org/show_bug.cgi?id=723868""")
                         return Result.KNOWN_ERROR
 
+                    self.set_result(Result.FAILED, "Pipeline did not stop 30 Seconds after sending EOS")
+
                     return Result.FAILED
 
         return self.get_current_position()
@@ -309,6 +311,7 @@ class GstValidateTranscodingTest(GstValidateTest):
                                         https://bugzilla.gnome.org/show_bug.cgi?id=723868""")
                         return Result.KNOWN_ERROR
 
+                    self.set_result(Result.FAILED, "Pipeline did not stop 30 Seconds after sending EOS")
 
                     return Result.FAILED
 
index 5552c09..fad536e 100644 (file)
@@ -169,7 +169,6 @@ class Test(Loggable):
                     break
                 continue
             elif val is Result.FAILED:
-                self.set_result(Result.FAILED)
                 break
             elif val is Result.KNOWN_ERROR:
                 break
@@ -183,7 +182,7 @@ class Test(Loggable):
                     self.set_result(Result.TIMEOUT)
                     break
             elif self.hard_timeout and time.time() - start_ts > self.hard_timeout:
-                self.set_result(Result.TIMEOUT)
+                self.set_result(Result.TIMEOUT, "Hard timeout reached: %d", self.hard_timeout)
                 break
             else:
                 last_change_ts = time.time()
@@ -703,6 +702,7 @@ class ScenarioManager(Loggable):
             Loggable.__init__(cls._instance)
 
         return cls._instance
+
     def _discover_scenarios(self):
         scenario_defs = os.path.join(self.config.main_dir, "scenarios.def")
         try: