mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Make build system more independent of current directory.
This commit is contained in:
parent
ff4877b473
commit
cc4ea7507f
8 changed files with 14 additions and 9 deletions
|
@ -107,7 +107,7 @@ class MachCommands(CommandBase):
|
|||
def cargo_test(component):
|
||||
return 0 != subprocess.call(
|
||||
["cargo", "test", "-p", component] + test_name,
|
||||
env=self.build_env(), cwd="components/servo")
|
||||
env=self.build_env(), cwd=self.servo_crate())
|
||||
|
||||
for component in os.listdir("components"):
|
||||
ret = ret or cargo_test(component)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue