From 01f66c0831ac890d9e62e6228f4fe1275cba436f Mon Sep 17 00:00:00 2001 From: Enji Cooper Date: Fri, 13 Feb 2015 01:07:12 +0000 Subject: [PATCH] Call wait to ensure that background processes have died This is being done to establish parity with pgrep-j_test --- bin/pkill/tests/pgrep-j_test.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bin/pkill/tests/pgrep-j_test.sh b/bin/pkill/tests/pgrep-j_test.sh index 4afe28a90edf..23e586a4ca17 100644 --- a/bin/pkill/tests/pgrep-j_test.sh +++ b/bin/pkill/tests/pgrep-j_test.sh @@ -50,6 +50,7 @@ else fi [ -f ${PWD}/${base}_1_1.pid ] && kill $(cat ${PWD}/${base}_1_1.pid) [ -f ${PWD}/${base}_1_2.pid ] && kill $(cat ${PWD}/${base}_1_2.pid) +wait name="pgrep -j any" sleep_amount=6 @@ -70,6 +71,7 @@ else fi [ -f ${PWD}/${base}_2_1.pid ] && kill $(cat ${PWD}/${base}_2_1.pid) [ -f ${PWD}/${base}_2_2.pid ] && kill $(cat ${PWD}/${base}_2_2.pid) +wait name="pgrep -j none" sleep_amount=7