From: Sebastian Harl Date: Wed, 30 Apr 2014 09:38:06 +0000 (+0200) Subject: integration tests: Kill the right process when shutting down sysdbd. X-Git-Tag: sysdb-0.1.0~63 X-Git-Url: https://git.tokkee.org/?p=sysdb.git;a=commitdiff_plain;h=c0bf49b0691ca1f4443cf2a09bfe0c67df6a75f2 integration tests: Kill the right process when shutting down sysdbd. Also, wait for it to terminate. --- diff --git a/t/integration/simple_config.sh b/t/integration/simple_config.sh index 677f53c..ce3c4eb 100755 --- a/t/integration/simple_config.sh +++ b/t/integration/simple_config.sh @@ -50,4 +50,6 @@ EOF sysdbd_pid=$! wait_for_sysdbd -kill $! +kill $sysdbd_pid +wait $sysdbd_pid + diff --git a/t/integration/simple_query.sh b/t/integration/simple_query.sh index d091e2b..3473fa1 100755 --- a/t/integration/simple_query.sh +++ b/t/integration/simple_query.sh @@ -55,4 +55,6 @@ sleep 3 | grep -F "localhost" \ | grep -F "other.host.name" \ | grep -F "some.host.name" -kill $! +kill $sysdbd_pid +wait $sysdbd_pid +