[pve-devel] [PATCH storage 10/11] disktest: exit with -1 in case of failures
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed May 17 11:42:37 CEST 2017
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
test/run_disk_tests.pl | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/test/run_disk_tests.pl b/test/run_disk_tests.pl
index e50c6f2..d955a02 100755
--- a/test/run_disk_tests.pl
+++ b/test/run_disk_tests.pl
@@ -6,5 +6,7 @@ use warnings;
use TAP::Harness;
my $harness = TAP::Harness->new( { verbosity => -2 });
-$harness->runtests( "disklist_test.pm" );
+my $res = $harness->runtests( "disklist_test.pm" );
+
+exit -1 if $res->{failed};
--
2.1.4
More information about the pve-devel
mailing list