5
0
mirror of git://git.proxmox.com/git/qemu-server.git synced 2024-12-23 17:34:19 +03:00
qemu-server/test/run_snapshot_tests.pl
Fabian Grünbichler 1c4afc63cd tests: exit with -1 in case of failures
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
2017-05-17 13:58:18 +02:00

12 lines
235 B
Perl
Executable File

#!/usr/bin/perl
use strict;
use warnings;
use TAP::Harness;
my $harness = TAP::Harness->new( { "verbosity" => -2 });
my $res = $harness->runtests( "snapshot-test.pm");
system( "rm -rf snapshot-working/");
exit -1 if $res->{failed};