diff options
-rw-r--r-- | cargo-nightly-build | 2 | ||||
-rw-r--r-- | python/servo/testing_commands.py | 11 |
2 files changed, 7 insertions, 6 deletions
diff --git a/cargo-nightly-build b/cargo-nightly-build index 8aaac9c27b2..cd3d0a1ea7d 100644 --- a/cargo-nightly-build +++ b/cargo-nightly-build @@ -1 +1 @@ -2015-08-20 +2015-10-01 diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index f6159406666..c9be0b02181 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -175,12 +175,13 @@ class MachCommands(CommandBase): if not packages: packages = set(os.listdir(path.join(self.context.topdir, "tests", "unit"))) + args = ["cargo", "test"] for crate in packages: - result = subprocess.call( - ["cargo", "test", "-p", "%s_tests" % crate] + test_patterns, - env=self.build_env(), cwd=self.servo_crate()) - if result != 0: - return result + args += ["-p", "%s_tests" % crate] + args += test_patterns + result = subprocess.call(args, env=self.build_env(), cwd=self.servo_crate()) + if result != 0: + return result @Command('test-ref', description='Run the reference tests', |