5
0
mirror of git://git.proxmox.com/git/pve-storage.git synced 2025-02-26 21:57:31 +03:00

tests: improve error handling of run_disk_tests

if Diskmanage.pm has a syntax error, this will now catch it
during build

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
This commit is contained in:
Dominik Csapak 2019-06-04 09:21:17 +02:00 committed by Thomas Lamprecht
parent c86ba76db7
commit b12883ded1

View File

@ -8,5 +8,5 @@ use TAP::Harness;
my $harness = TAP::Harness->new( { verbosity => -2 });
my $res = $harness->runtests( "disklist_test.pm" );
exit -1 if $res->{failed};
exit -1 if !$res || $res->{failed} || $res->{parse_errors};