Terminate individual tests after half an hour
authorSimon McVittie <smcv@debian.org>
Fri, 9 Sep 2016 07:23:36 +0000 (08:23 +0100)
committerSimon McVittie <smcv@debian.org>
Thu, 15 Sep 2016 07:26:51 +0000 (07:26 +0000)
While using the Automake parallel test harness, if a test hangs for
long enough for an external watchdog to kill the entire build process
(as happens in Debian sbuild after 150 minutes with no activity on
stdout/stderr), the logs will not be shown. If we make an individual
test time out sooner, logs are more likely to be shown.

Signed-off-by: Simon McVittie <smcv@debian.org>
Gbp-Pq: Name Terminate-individual-tests-after-half-an-hour.patch

buildutil/tap-test

index 6b2eb5c1bf7c96a35355bda9ba9c0d24e573090e..4971f0b12d1b0d60c4773374ba0b3d26b3a98050 100755 (executable)
@@ -20,4 +20,4 @@ function cleanup () {
 }
 trap cleanup EXIT
 cd ${tempdir}
-${srcd}/${bn} -k --tap
+timeout --kill-after=60 1800 ${srcd}/${bn} -k --tap