]> git.proxmox.com Git - pve-storage.git/commitdiff
tests: improve error handling of run_disk_tests
authorDominik Csapak <d.csapak@proxmox.com>
Tue, 4 Jun 2019 07:21:17 +0000 (09:21 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Tue, 4 Jun 2019 08:27:51 +0000 (10:27 +0200)
if Diskmanage.pm has a syntax error, this will now catch it
during build

Signed-off-by: Dominik Csapak <d.csapak@proxmox.com>
test/run_disk_tests.pl

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