mirror of
https://github.com/servo/servo.git
synced 2025-08-07 14:35:33 +01:00
Watch for test failures, not just I/O errors.
This commit is contained in:
parent
25d3c9078e
commit
16d1d65b03
2 changed files with 4 additions and 2 deletions
|
@ -31,7 +31,8 @@ fn main() {
|
||||||
let opts = test_options(config.clone());
|
let opts = test_options(config.clone());
|
||||||
let tests = find_tests(config);
|
let tests = find_tests(config);
|
||||||
match run_tests_console(&opts, tests) {
|
match run_tests_console(&opts, tests) {
|
||||||
Err(_) => os::set_exit_status(1),
|
Ok(false) => os::set_exit_status(1), // tests failed
|
||||||
|
Err(_) => os::set_exit_status(2), // I/O-related failure
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -45,7 +45,8 @@ fn main() {
|
||||||
};
|
};
|
||||||
|
|
||||||
match run_tests_console(&test_opts, tests) {
|
match run_tests_console(&test_opts, tests) {
|
||||||
Err(_) => os::set_exit_status(1),
|
Ok(false) => os::set_exit_status(1), // tests failed
|
||||||
|
Err(_) => os::set_exit_status(2), // I/O-related failure
|
||||||
_ => (),
|
_ => (),
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue