From 39f661c5f55a946ec466ed7bada5bf67fdacf79a Mon Sep 17 00:00:00 2001 From: Gregory Hainaut Date: Mon, 18 Jan 2016 23:40:04 +0100 Subject: [PATCH] tests: show replay command for timed-out test --- tests/run_test.pl | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/tests/run_test.pl b/tests/run_test.pl index 62c5c01d47..3de65280cd 100755 --- a/tests/run_test.pl +++ b/tests/run_test.pl @@ -119,12 +119,14 @@ foreach my $test (sort(keys(%$g_test_db))) { if ($info->{"STATUS"} == 0) { print color('bold green'); print " OK | $test\n"; - } elsif ($info->{"STATUS"} == 0xBADBEEF) { - print color('bold blue'); - print " Tout | $test\n"; } else { - print color('bold red'); - print " KO | $test\n"; + if ($info->{"STATUS"} == 0xBADBEEF) { + print color('bold blue'); + print " Tout | $test\n"; + } else { + print color('bold red'); + print " KO | $test\n"; + } if ($o_show_diff) { print color('bold magenta'); print "-----------------------------------------------------------------------\n"; print color('reset'); print test_cmd($test, $cfg) . "\n\n";