From: Dominik Csapak Date: Tue, 4 Jun 2019 07:21:17 +0000 (+0200) Subject: tests: improve error handling of run_disk_tests X-Git-Url: https://git.proxmox.com/?p=pve-storage.git;a=commitdiff_plain;h=b12883ded172642492be38d99086a15a51880674 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 --- diff --git a/test/run_disk_tests.pl b/test/run_disk_tests.pl index d955a02..c1a698e 100755 --- a/test/run_disk_tests.pl +++ b/test/run_disk_tests.pl @@ -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};