diff options
author | bors-servo <metajack+bors@gmail.com> | 2014-12-02 19:27:51 -0700 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2014-12-02 19:27:51 -0700 |
commit | 873ca6cadddc1a40bead1f5dd0128bb16cfaa11b (patch) | |
tree | e9a1c8b6dc056448fea6d52229e54817b97d14d2 /python/servo/testing_commands.py | |
parent | b2b6d4d0d1e381d038dc5e45cbe74304704934e7 (diff) | |
parent | e1c2210c23e2e5f7a24901618698c090279092ee (diff) | |
download | servo-873ca6cadddc1a40bead1f5dd0128bb16cfaa11b.tar.gz servo-873ca6cadddc1a40bead1f5dd0128bb16cfaa11b.zip |
auto merge of #4140 : SimonSapin/servo/no-root-cargo-toml, r=SimonSapin
This fixes #3957, and allow #4115 not to regress #4099.
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 8735a234e12..ff4844731d8 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -31,10 +31,12 @@ class MachCommands(CommandBase): self.context.built_tests = True def find_test(self, prefix): - target_contents = os.listdir(path.join(self.context.topdir, "target")) + target_contents = os.listdir(path.join( + self.context.topdir, "components", "servo", "target")) for filename in target_contents: if filename.startswith(prefix + "-"): - filepath = path.join(self.context.topdir, "target", filename) + filepath = path.join( + self.context.topdir, "components", "servo", "target", filename) if path.isfile(filepath) and os.access(filepath, os.X_OK): return filepath @@ -104,10 +106,12 @@ class MachCommands(CommandBase): def cargo_test(component): return 0 != subprocess.call( - ["cargo", "test", "-p", component] + test_name, env=self.build_env()) + ["cargo", "test", "-p", component] + test_name, + env=self.build_env(), cwd=self.servo_crate()) for component in os.listdir("components"): - ret = ret or cargo_test(component) + if component != "servo": + ret = ret or cargo_test(component) return ret |