Add support for --test-args to cargotest
This allows running a single test without having to wait for all tests to complete.
This commit is contained in:
parent
b52769b804
commit
d95a6cf911
2 changed files with 4 additions and 1 deletions
|
|
@ -85,7 +85,9 @@ fn main() {
|
|||
let cargo = &Path::new(cargo);
|
||||
|
||||
for test in TEST_REPOS.iter().rev() {
|
||||
test_repo(cargo, out_dir, test);
|
||||
if args[3..].is_empty() || args[3..].iter().any(|s| s.contains(test.name)) {
|
||||
test_repo(cargo, out_dir, test);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue