summaryrefslogtreecommitdiff
path: root/check.am
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2014-04-30 05:40:33 +0200
committerGuillem Jover <guillem@debian.org>2014-04-30 07:59:42 +0200
commit5daf50d5e45aece8b2acf5688f234cca49bc33c7 (patch)
treeb5d449d248f59d80d5b725a3ab9caac5071e77e7 /check.am
parent8cd7aa2c68ed1648cd517c4e724eab8f1b6eebdc (diff)
downloaddpkg-5daf50d5e45aece8b2acf5688f234cca49bc33c7.tar.gz
build: Make test suite errors fatal again
We need to check in the aggregated results if any test had any problem, and die accordingly. Regression introduced in commit 34b26c7db232b300991df5fb6f52707b381df28f. Closes: #746331
Diffstat (limited to 'check.am')
-rw-r--r--check.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/check.am b/check.am
index 7a69f01ca..4d9b4bfe2 100644
--- a/check.am
+++ b/check.am
@@ -17,7 +17,8 @@ TEST_RUNNER = '\
verbosity => $(TEST_VERBOSE), \
failures => 1, \
}); \
- $$harness->runtests(@ARGV);'
+ my $$aggregate = $$harness->runtests(@ARGV); \
+ die "FAIL: test suite has errors\n" if $$aggregate->has_errors;'
check-clean:
[ -z "$(test_tmpdir)" ] || rm -fr $(test_tmpdir)