Skip to content

Commit

Permalink
servo: Merge #7813 - Run all unit tests with just one Cargo command (…
Browse files Browse the repository at this point in the history
…from servo:parallel-unit-tests); r=mbrubeck

Upgrade Cargo to get rust-lang/cargo#1828, and use it for unit tests. This allows Cargo to get some more parallelism when compiling the test crates’ dependencies.

`touch components/util/lib.rs && mach test-unit` on my machine goes from 149 seconds to 124.

Source-Repo: https://github.com/servo/servo
Source-Revision: ba2714f4f607da77bd7200f88cfa16c1d10da9cd

UltraBlame original commit: a747ff057fac88586b57a543cf00052e24c93afe
  • Loading branch information
marco-c committed Oct 1, 2019
1 parent 584fc3b commit 6120850
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 17 deletions.
4 changes: 2 additions & 2 deletions servo/cargo-nightly-build
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
2015
-
08
10
-
20
01
41 changes: 26 additions & 15 deletions servo/python/servo/testing_commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -1469,26 +1469,27 @@
)
)

for
crate
in
packages
:

result
args
=
subprocess
.
call
(

[
"
cargo
"
"
test
"
]

for
crate
in
packages
:

args
+
=
[
"
-
p
Expand All @@ -1500,9 +1501,19 @@
%
crate
]

args
+
=
test_patterns


result
=
subprocess
.
call
(
args
env
=
self
Expand All @@ -1518,14 +1529,14 @@
(
)
)

if
result
!
=
0
:

return
result

Expand Down

0 comments on commit 6120850

Please sign in to comment.