[pve-devel] [PATCH container 3/4] tests: exit with -1 in case of failures

Fabian Grünbichler f.gruenbichler at proxmox.com
Wed May 17 12:14:14 CEST 2017


Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 src/test/run_snapshot_tests.pl | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/test/run_snapshot_tests.pl b/src/test/run_snapshot_tests.pl
index 6def87f..38c74f9 100755
--- a/src/test/run_snapshot_tests.pl
+++ b/src/test/run_snapshot_tests.pl
@@ -6,5 +6,6 @@ use warnings;
 use TAP::Harness;
 
 my $harness = TAP::Harness->new( { "verbosity" => -2 });
-$harness->runtests( "snapshot-test.pm");
+my $res = $harness->runtests( "snapshot-test.pm");
 system( "rm -rf snapshot-working/");
+exit -1 if $res->{failed};
-- 
2.1.4





More information about the pve-devel mailing list