From 1c4afc63cda8b012e55aef8faf48235c68e08ded Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Gr=C3=BCnbichler?= Date: Wed, 17 May 2017 12:40:55 +0200 Subject: [PATCH] tests: exit with -1 in case of failures MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Fabian Grünbichler --- 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 6def87f5..38c74f91 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};