PROTOCOL_TIMEOUTS = {"http": 60,
"hls": 60}
+G_V_BLACKLISTED_TESTS = [("validate.hls.playback.fast_forward.*", "https://bugzilla.gnome.org/show_bug.cgi?id=698155"),
+ ("validate.hls.playback.seek_with_stop.*", "https://bugzilla.gnome.org/show_bug.cgi?id=723268"),
+ ("validate.*.simple_backward.*webm$", "https://bugzilla.gnome.org/show_bug.cgi?id=679250"),
+ ("validate.http.simple_backward.*", "https://bugzilla.gnome.org/show_bug.cgi?id=723270"),
+ ("validate.http.playback.seek_with_stop.*webm", "matroskademux.gst_matroska_demux_handle_seek_push: Seek end-time not supported in streaming mode"),
+ ("validate.http.playback.seek_with_stop.*mkv", "matroskademux.gst_matroska_demux_handle_seek_push: Seek end-time not supported in streaming mode")
+ ]
+
G_V_SCENARIOS = {"file": [Scenario.get_scenario("play_15s"),
Scenario.get_scenario("simple_backward"),
Scenario.get_scenario("fast_forward"),
if urlparse.urlparse(uri).scheme == "http" and \
"127.0.0.1:%s" % (self.options.http_server_port) in uri:
return True
+
+ def get_blacklisted(self):
+ return G_V_BLACKLISTED_TESTS
def get_tests(self):
return self.tests
+ def get_blacklisted(self):
+ return []
+
def add_options(self, parser):
""" Add more arguments. """
pass
if tester.needs_http_server():
return True
+ def get_blacklisted(self):
+ res = []
+ for tester in self.testers:
+ for blacklisted in tester.get_blacklisted():
+ if isinstance(blacklisted, str):
+ res.append(blacklisted, "Unknown")
+ else:
+ res.append(blacklisted)
+ return res
+
class NamedDic(object):
from httpserver import HTTPServer
from baseclasses import _TestsLauncher
-from utils import printc, path2url, DEFAULT_GST_QA_ASSETS, launch_command
+from utils import printc, path2url, DEFAULT_GST_QA_ASSETS, launch_command, Colors
DEFAULT_GST_QA_ASSETS_REPO = "git://people.freedesktop.org/~tsaunier/gst-qa-assets/"
-BLACKLISTED_TESTS = ["validate.hls.playback.simple_backward", # bug 698155
- "validate.hls.playback.fast_forward", # bug 698155
- "validate.*.simple_backward.*webm$", # bug 679250
- ]
-
def main():
parser = OptionParser()
parser.add_option("-b", "--blacklisted-tests", dest="blacklisted_tests",
default=[],
action="append",
- help="Define the tests not to execute, it can be a regex."
- " Currently blacklisted tests are: %s" % BLACKLISTED_TESTS)
+ help="Define the tests not to execute, it can be a regex.")
parser.add_option("-L", "--list-tests",
dest="list_tests",
action="store_true",
tests_launcher = _TestsLauncher()
tests_launcher.add_options(parser)
- for p in BLACKLISTED_TESTS:
- sys.argv.extend(["-b", p])
+ blacklisted = tests_launcher.get_blacklisted()
+ if blacklisted:
+ msg = "Currently 'hardcoded' blacklisted tests:\n"
+ for name, bug in blacklisted:
+ sys.argv.extend(["-b", name])
+ msg += " + %s -- bug: %s\n" % (name, bug)
+
+ printc(msg, Colors.FAIL, True)
(options, args) = parser.parse_args()
if options.xunit_file is None: