зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1209327 - Add in-tree config for mediatests, r=maja
--HG-- extra : commitid : Cgn8JqjOn8p
This commit is contained in:
Родитель
7b4a70a169
Коммит
1b2cdaa4c0
|
@ -46,4 +46,14 @@ config = {
|
|||
"firefox_ui_branch": 'mozilla-central',
|
||||
"firefox_ui_rev": '6d6d57917f85399e903ac69b7e4297091b2d474c',
|
||||
|
||||
"suite_definitions": {
|
||||
"media-tests": {
|
||||
"options": [],
|
||||
},
|
||||
"media-youtube-tests": {
|
||||
"options": [
|
||||
"--tests=%(test_manifest)s"
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -57,4 +57,14 @@ config = {
|
|||
"firefox_ui_branch": 'mozilla-central',
|
||||
"firefox_ui_rev": '6d6d57917f85399e903ac69b7e4297091b2d474c',
|
||||
|
||||
"suite_definitions": {
|
||||
"media-tests": {
|
||||
"options": [],
|
||||
},
|
||||
"media-youtube-tests": {
|
||||
"options": [
|
||||
"--tests=%(test_manifest)s"
|
||||
],
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
@ -225,6 +225,7 @@ class FirefoxMediaTestsBase(TestingMixin, VCSToolsScript):
|
|||
cmd.append(self.tests)
|
||||
if self.e10s:
|
||||
cmd.append('--e10s')
|
||||
|
||||
return cmd
|
||||
|
||||
def run_media_tests(self):
|
||||
|
|
|
@ -28,13 +28,22 @@ from mozharness.mozilla.testing.firefox_media_tests import (
|
|||
FirefoxMediaTestsBase, BUSTED, TESTFAILED, UNKNOWN, EXCEPTION, SUCCESS
|
||||
)
|
||||
|
||||
buildbot_media_test_options = [
|
||||
[["--suite"],
|
||||
{"action": "store",
|
||||
"dest": "test_suite",
|
||||
"default": "media-tests",
|
||||
"help": "suite name",
|
||||
}],
|
||||
]
|
||||
|
||||
|
||||
class FirefoxMediaTestsBuildbot(FirefoxMediaTestsBase, BlobUploadMixin):
|
||||
|
||||
def __init__(self):
|
||||
config_options = copy.deepcopy(blobupload_config_options)
|
||||
super(FirefoxMediaTestsBuildbot, self).__init__(
|
||||
config_options=config_options,
|
||||
config_options=config_options + buildbot_media_test_options,
|
||||
all_actions=['clobber',
|
||||
'read-buildbot-config',
|
||||
'checkout',
|
||||
|
@ -84,6 +93,21 @@ class FirefoxMediaTestsBuildbot(FirefoxMediaTestsBase, BlobUploadMixin):
|
|||
'media_tests.html')]
|
||||
cmd += ['--log-mach', os.path.join(blob_upload_dir,
|
||||
'media_tests_mach.log')]
|
||||
|
||||
test_suite = self.config.get('test_suite')
|
||||
test_manifest = None if test_suite != 'media-youtube-tests' else \
|
||||
os.path.join(dirs['firefox_media_dir'],
|
||||
'firefox_media_tests',
|
||||
'playback', 'youtube', 'manifest.ini')
|
||||
config_fmt_args = {
|
||||
'test_manifest': test_manifest,
|
||||
}
|
||||
|
||||
if test_suite not in self.config["suite_definitions"]:
|
||||
self.fatal("%s is not defined in the config!" % test_suite)
|
||||
for s in self.config["suite_definitions"][test_suite]["options"]:
|
||||
cmd.append(s % config_fmt_args)
|
||||
|
||||
return cmd
|
||||
|
||||
def run_media_tests(self):
|
||||
|
|
Загрузка…
Ссылка в новой задаче