From b12883ded172642492be38d99086a15a51880674 Mon Sep 17 00:00:00 2001 From: Dominik Csapak Date: Tue, 4 Jun 2019 09:21:17 +0200 Subject: [PATCH] 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 --- 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.39.2