mirror of
https://github.com/servo/servo.git
synced 2025-06-13 02:44:29 +00:00
Auto merge of #16935 - servo:out-of-crate-bindings-tests, r=emilio
Move bindings tests out of the style crate This cuts in almost half the time to run: ``` touch components/style/lib.rs ./mach test-stylo ``` <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/16935) <!-- Reviewable:end -->
This commit is contained in:
commit
a01ab9ad34
13 changed files with 37 additions and 41 deletions
|
@ -299,13 +299,8 @@ class MachCommands(CommandBase):
|
|||
env["CARGO_TARGET_DIR"] = path.join(self.context.topdir, "target", "geckolib").encode("UTF-8")
|
||||
|
||||
release = ["--release"] if release else []
|
||||
ret = 0
|
||||
with cd(path.join("ports", "geckolib")):
|
||||
ret = call(["cargo", "test", "-p", "stylo_tests", "--features", "testing"] + release, env=env)
|
||||
if ret != 0:
|
||||
return ret
|
||||
with cd(path.join("ports", "geckolib")):
|
||||
return call(["cargo", "test", "-p", "style"] + release, env=env)
|
||||
return call(["cargo", "test", "-p", "stylo_tests", "--features", "testing"] + release, env=env)
|
||||
|
||||
@Command('test-compiletest',
|
||||
description='Run compiletests',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue