]> git.proxmox.com Git - qemu-server.git/commitdiff
tests: exit with -1 in case of failures
authorFabian Grünbichler <f.gruenbichler@proxmox.com>
Wed, 17 May 2017 10:40:55 +0000 (12:40 +0200)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 17 May 2017 11:58:18 +0000 (13:58 +0200)
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
test/run_snapshot_tests.pl

index 6def87f5bc4a4cc9fa838481168968b3852f2999..38c74f91ad3c85903e6d1c3026e3f27c78357509 100755 (executable)
@@ -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};