зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1896684 - Enable running subsets of Marionette tests on CI. r=ahal
When the test-manitests yml section is defined, Marionette can use the suite for this definition to select its test paths. A different suite is needed for the user interface to specify what to run. Differential Revision: https://phabricator.services.mozilla.com/D210445
This commit is contained in:
Родитель
44b945e448
Коммит
0ae5d24435
|
@ -151,6 +151,15 @@ class MarionetteTest(TestingMixin, MercurialScript, TransferMixin, CodeCoverageM
|
|||
"help": "Run the browser without fission enabled",
|
||||
},
|
||||
],
|
||||
[
|
||||
["--subsuite"],
|
||||
{
|
||||
"action": "store",
|
||||
"dest": "subsuite",
|
||||
"default": "marionette",
|
||||
"help": "Selects test paths from test-manifests.active",
|
||||
},
|
||||
],
|
||||
]
|
||||
+ copy.deepcopy(testing_config_options)
|
||||
+ copy.deepcopy(code_coverage_config_options)
|
||||
|
@ -188,6 +197,7 @@ class MarionetteTest(TestingMixin, MercurialScript, TransferMixin, CodeCoverageM
|
|||
self.binary_path = c.get("binary_path")
|
||||
self.test_url = c.get("test_url")
|
||||
self.test_packages_url = c.get("test_packages_url")
|
||||
self.subsuite = c.get("subsuite")
|
||||
|
||||
self.test_suite = self._get_test_suite(c.get("emulator"))
|
||||
if self.test_suite not in self.config["suite_definitions"]:
|
||||
|
@ -357,7 +367,7 @@ class MarionetteTest(TestingMixin, MercurialScript, TransferMixin, CodeCoverageM
|
|||
test_paths = json.loads(os.environ.get("MOZHARNESS_TEST_PATHS", '""'))
|
||||
confirm_paths = json.loads(os.environ.get("MOZHARNESS_CONFIRM_PATHS", '""'))
|
||||
|
||||
suite = "marionette"
|
||||
suite = self.subsuite
|
||||
if test_paths and suite in test_paths:
|
||||
suite_test_paths = test_paths[suite]
|
||||
if confirm_paths and suite in confirm_paths and confirm_paths[suite]:
|
||||
|
|
Загрузка…
Ссылка в новой задаче