Bug 1597261 - [mach test] Avoid re-using subsuite from earlier manifest; r=bc

Simply ensuring an empty kwargs['subsuite'] avoids this tricky edge case.

Differential Revision: https://phabricator.services.mozilla.com/D77910
This commit is contained in:
Geoff Brown 2020-06-04 16:14:08 +00:00
parent 989440457b
commit 3ce8434d77

View File

@ -359,6 +359,7 @@ class Test(MachCommandBase):
suite = TEST_SUITES[suite_name]
kwargs = suite['kwargs']
kwargs['log'] = log
kwargs.setdefault('subsuite', None)
if 'mach_command' in suite:
res = self._mach_context.commands.dispatch(
@ -382,6 +383,7 @@ class Test(MachCommandBase):
kwargs = dict(m['kwargs'])
kwargs['log'] = log
kwargs.setdefault('subsuite', None)
res = self._mach_context.commands.dispatch(
m['mach_command'], self._mach_context,