Commit 72edf7da authored by unknown's avatar unknown

Don't print stats when test run is abort because of test failure

parent 586d8cd4
...@@ -291,6 +291,7 @@ sub main { ...@@ -291,6 +291,7 @@ sub main {
mtr_print_thick_line(); mtr_print_thick_line();
mtr_print_header(); mtr_print_header();
my $num_tests= @$tests;
my $completed= run_test_server($server, $tests, $opt_parallel); my $completed= run_test_server($server, $tests, $opt_parallel);
# Send Ctrl-C to any children still running # Send Ctrl-C to any children still running
...@@ -308,6 +309,12 @@ sub main { ...@@ -308,6 +309,12 @@ sub main {
} }
} }
if ( @$completed != $num_tests){
# Not all tests completed, failure
mtr_error("Test failed.",
"To continue, re-run with '--force'");
}
mtr_verbose("Server exit\n"); mtr_verbose("Server exit\n");
mtr_print_line(); mtr_print_line();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment