diff options
author | Jack Moffitt <jack@metajack.im> | 2015-06-08 16:09:08 -0600 |
---|---|---|
committer | Jack Moffitt <jack@metajack.im> | 2015-06-15 11:48:47 -0600 |
commit | a0237085c6894cc781bc99469a735206e1e6b127 (patch) | |
tree | f0f391d0f60e64b725a078bce2be17ca0bd77633 /python/servo/testing_commands.py | |
parent | ce30807be594d62b75772eac6356f84089a18c09 (diff) | |
download | servo-a0237085c6894cc781bc99469a735206e1e6b127.tar.gz servo-a0237085c6894cc781bc99469a735206e1e6b127.zip |
Use Cargo's target directory sharing.
This speeds up `./mach build --dev` followed by `./mach build-cef` by a
large amount, and also speeds up other build combos found in our CI.
Diffstat (limited to 'python/servo/testing_commands.py')
-rw-r--r-- | python/servo/testing_commands.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/python/servo/testing_commands.py b/python/servo/testing_commands.py index 5d656b2bc97..efe2b128653 100644 --- a/python/servo/testing_commands.py +++ b/python/servo/testing_commands.py @@ -47,12 +47,11 @@ class MachCommands(CommandBase): def find_test(self, prefix): target_contents = os.listdir(path.join( - self.context.topdir, "components", "servo", "target", "debug")) + self.get_target_dir(), "debug")) for filename in target_contents: if filename.startswith(prefix + "-"): filepath = path.join( - self.context.topdir, "components", "servo", - "target", "debug", filename) + self.get_target_dir(), "debug", filename) if path.isfile(filepath) and os.access(filepath, os.X_OK): return filepath |