[pve-devel] [PATCH storage 5/5] tests: improve error handling of run_disk_tests

Dominik Csapak d.csapak at proxmox.com
Tue Jun 4 09:21:17 CEST 2019


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

Signed-off-by: Dominik Csapak <d.csapak at proxmox.com>
---
 test/run_disk_tests.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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





More information about the pve-devel mailing list