test.sh: Kill stray ostree-trivial-httpd processes
This commit is contained in:
parent
022fab56dc
commit
c3d91cda6e
|
|
@ -23,6 +23,7 @@ ostree (2017.12-2) UNRELEASED; urgency=medium
|
||||||
* d/p/2017.13/tests-Add-test-pull-bareuseronly.patch:
|
* d/p/2017.13/tests-Add-test-pull-bareuseronly.patch:
|
||||||
Add more test coverage from upstream
|
Add more test coverage from upstream
|
||||||
- d/rules: Make the new test executable
|
- d/rules: Make the new test executable
|
||||||
|
* d/test.sh: Clean up ostree-trivial-httpd processes
|
||||||
|
|
||||||
-- Simon McVittie <smcv@debian.org> Mon, 16 Oct 2017 10:13:54 +0100
|
-- Simon McVittie <smcv@debian.org> Mon, 16 Oct 2017 10:13:54 +0100
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -28,10 +28,12 @@ if [ "$failed" -gt 0 ]; then
|
||||||
fi
|
fi
|
||||||
|
|
||||||
pkill --full "gpg-agent --homedir /var/tmp/tap-test\\.[^/]+/.*" || :
|
pkill --full "gpg-agent --homedir /var/tmp/tap-test\\.[^/]+/.*" || :
|
||||||
|
pkill --full '\.libs/ostree-trivial-httpd' || :
|
||||||
|
|
||||||
if pgrep lt-ostree || pgrep --full "gpg-agent --homedir /var/tmp/tap-test."; then \
|
if pgrep lt-ostree || pgrep --full '\.libs/ostree-trivial-httpd' || pgrep --full "gpg-agent --homedir /var/tmp/tap-test."; then \
|
||||||
echo "WARNING: daemon processes were leaked"
|
echo "WARNING: daemon processes were leaked"
|
||||||
pgrep gpg-agent | xargs --no-run-if-empty ps ww
|
pgrep gpg-agent | xargs --no-run-if-empty ps ww
|
||||||
|
pgrep --full '\.libs/ostree-trivial-httpd' | xargs --no-run-if-empty ps ww
|
||||||
pgrep lt-ostree | xargs --no-run-if-empty ps ww
|
pgrep lt-ostree | xargs --no-run-if-empty ps ww
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue