From: Fabian Grünbichler Date: Wed, 17 May 2017 09:42:37 +0000 (+0200) Subject: disktest: exit with -1 in case of failures X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d1aa38aec23bc6e7ae97967026512104e3dcf364;p=pve-storage.git disktest: exit with -1 in case of failures Signed-off-by: Fabian Grünbichler --- diff --git a/test/run_disk_tests.pl b/test/run_disk_tests.pl index e50c6f2..d955a02 100755 --- a/test/run_disk_tests.pl +++ b/test/run_disk_tests.pl @@ -6,5 +6,7 @@ use warnings; use TAP::Harness; my $harness = TAP::Harness->new( { verbosity => -2 }); -$harness->runtests( "disklist_test.pm" ); +my $res = $harness->runtests( "disklist_test.pm" ); + +exit -1 if $res->{failed};