Bug 920184 - Have mach xpcshell-test and mochitest-* update test files automatically; r=ted

This commit is contained in:
Gregory Szorc
2013-10-01 18:36:44 +02:00
parent fc6eebe162
commit f5c5dde751
3 changed files with 34 additions and 1 deletions

View File

@@ -226,11 +226,16 @@ class MachCommands(MachCommandBase):
@CommandArgument('--rerun-failures', action='store_true',
help='Reruns failures from last time.')
def run_xpcshell_test(self, **params):
from mozbuild.controller.building import BuildDriver
# We should probably have a utility function to ensure the tree is
# ready to run tests. Until then, we just create the state dir (in
# case the tree wasn't built with mach).
self._ensure_state_subdir_exists('.')
driver = self._spawn(BuildDriver)
driver.install_tests(remove=False)
xpcshell = self._spawn(XPCShellRunner)
try: