[pve-devel] [PATCH qemu-server 1/4] tests: exit with -1 in case of failures
Fabian Grünbichler
f.gruenbichler at proxmox.com
Wed May 17 12:40:55 CEST 2017
Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
test/run_snapshot_tests.pl | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/test/run_snapshot_tests.pl b/test/run_snapshot_tests.pl
index 6def87f..38c74f9 100755
--- a/test/run_snapshot_tests.pl
+++ b/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