contenttest: Exit with non-zero status when tests fail

This makes buildbot reject commits with failing contenttests.
This commit is contained in:
Keegan McAllister 2013-10-24 13:23:39 -07:00
parent bce5285506
commit 895191c3a6

View file

@ -27,7 +27,9 @@ fn main() {
let config = parse_config(args);
let opts = test_options(config.clone());
let tests = find_tests(config);
run_tests_console(&opts, tests);
if !run_tests_console(&opts, tests) {
os::set_exit_status(1);
}
}
fn parse_config(args: ~[~str]) -> Config {