5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2025-02-02 09:47:13 +03:00

tests: exit with -1 in case of failures

Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
Fabian Grünbichler 2017-05-17 12:40:55 +02:00 committed by Wolfgang Bumiller
parent dd32a4664f
commit 1c4afc63cd

View File

@ -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};