Code

integration tests: Kill the right process when shutting down sysdbd.
authorSebastian Harl <sh@tokkee.org>
Wed, 30 Apr 2014 09:38:06 +0000 (11:38 +0200)
committerSebastian Harl <sh@tokkee.org>
Wed, 30 Apr 2014 09:38:06 +0000 (11:38 +0200)
Also, wait for it to terminate.

t/integration/simple_config.sh
t/integration/simple_query.sh

index 677f53c05d8c2038bab85435dd8947de85d7efcb..ce3c4eb26d175556437bf1a50afc123504f3da0a 100755 (executable)
@@ -50,4 +50,6 @@ EOF
 sysdbd_pid=$!
 
 wait_for_sysdbd
-kill $!
+kill $sysdbd_pid
+wait $sysdbd_pid
+
index d091e2b4b8d375d4bbf00c738de0c51792ac9e68..3473fa1c89535475e3947ecefd25525a016ffc3f 100755 (executable)
@@ -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
+