disktest: exit with -1 in case of failures

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler
2017-05-17 11:42:37 +02:00
committed by Wolfgang Bumiller
parent e93e1bed73
commit d1aa38aec2

View File

@ -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};