debian/rules: warn if there are leftover daemon processes after testing

This commit is contained in:
Simon McVittie 2016-03-31 08:52:22 +01:00
parent 81df52da0e
commit a15d353b49
2 changed files with 9 additions and 0 deletions

1
debian/changelog vendored
View File

@ -9,6 +9,7 @@ ostree (2016.4-1) UNRELEASED; urgency=medium
* Fix ITP bug number in changelog (was #813308, should have been #697477)
* debian/control: build-depend on attr, for the tests (only required if
/var/tmp supports extended attributes)
* debian/rules: warn if there are leftover daemon processes after testing
-- Simon McVittie <smcv@debian.org> Mon, 28 Mar 2016 12:02:59 +0100

8
debian/rules vendored
View File

@ -24,6 +24,14 @@ override_dh_auto_configure:
$(NULL)
chmod +x tests/*.js
override_dh_auto_test:
dh_auto_test
if pgrep lt-ostree || pgrep --full "gpg-agent --homedir /var/tmp/tap-test."; then \
echo "WARNING: daemon processes were leaked"; \
pgrep gpg-agent | xargs --no-run-if-empty ps ww; \
pgrep lt-ostree | xargs --no-run-if-empty ps ww; \
fi
override_dh_install:
rm -f debian/tmp/usr/lib/*/*.la
rm -f debian/tmp/usr/lib/ostree/installed-tests/*.la