]> dgit.raspbian.org Git - ostree.git/commit
Terminate individual tests after 10 minutes
authorSimon McVittie <smcv@debian.org>
Thu, 1 Dec 2016 11:25:33 +0000 (11:25 +0000)
committerSimon McVittie <smcv@debian.org>
Thu, 1 Dec 2016 12:38:54 +0000 (12:38 +0000)
commit99a55566d6f5360c47884d98719cca0f38ce5e03
tree91a7d0d2b722120c04947d573ec295d0100d90a3
parenta7834427ac15c194de7111ad8f9efdee934d3211
Terminate individual tests after 10 minutes

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.

We use SIGABRT so that the process(es) under test will dump core,
allowing the point at which ostree is blocking to be analyzed.
After 1 minute, if any have not died, we kill them again with SIGKILL.

Signed-off-by: Simon McVittie <smcv@debian.org>
Forwarded: https://github.com/ostreedev/ostree/pull/607

Gbp-Pq: Name Terminate-individual-tests-after-10-minutes.patch
buildutil/tap-test