From d1aa38aec23bc6e7ae97967026512104e3dcf364 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 17 May 2017 11:42:37 +0200 Subject: [PATCH] disktest: exit with -1 in case of failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- test/run_disk_tests.pl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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};