]> git.proxmox.com Git - pve-storage.git/commitdiff
disktest: exit with -1 in case of failures
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 17 May 2017 09:42:37 +0000 (11:42 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Tue, 6 Jun 2017 14:15:42 +0000 (16:15 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
test/run_disk_tests.pl

index e50c6f24e3447c83f32bd9e1ef992d9977c617e3..d955a02f93861842b5a2317fbf9b64088bfdcd7b 100755 (executable)
@@ -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};