Skip to content
Snippets Groups Projects
Commit e8f4d5aa authored by Ali Omar Abdelazim Mohammed's avatar Ali Omar Abdelazim Mohammed
Browse files

add wiat pm in pm tests

parent 3bbc6dbe
Branches
No related tags found
1 merge request!26Resolve "Waiting for PM to terminate properly"
...@@ -34,6 +34,8 @@ terminate () { ...@@ -34,6 +34,8 @@ terminate () {
# will make it receive a SIGPIPE eventually, which initiates # will make it receive a SIGPIPE eventually, which initiates
# termination. # termination.
exec 3<&- exec 3<&-
echo "waiting pm to terminate"
wait ${PM_PID}
exit ${2:-99} exit ${2:-99}
} }
......
...@@ -34,6 +34,8 @@ terminate () { ...@@ -34,6 +34,8 @@ terminate () {
# will make it receive a SIGPIPE eventually, which initiates # will make it receive a SIGPIPE eventually, which initiates
# termination. # termination.
exec 3<&- exec 3<&-
echo "waiting pm to terminate"
wait ${PM_PID}
exit ${2:-99} exit ${2:-99}
} }
......
...@@ -34,6 +34,8 @@ terminate () { ...@@ -34,6 +34,8 @@ terminate () {
# will make it receive a SIGPIPE eventually, which initiates # will make it receive a SIGPIPE eventually, which initiates
# termination. # termination.
exec 3<&- exec 3<&-
echo "waiting pm to terminate"
wait ${PM_PID}
exit ${2:-99} exit ${2:-99}
} }
......
...@@ -60,6 +60,8 @@ terminate () { ...@@ -60,6 +60,8 @@ terminate () {
# will make it receive a SIGPIPE eventually, which initiates # will make it receive a SIGPIPE eventually, which initiates
# termination. # termination.
exec 3<&- exec 3<&-
echo "waiting pm to terminate"
wait ${PM_PID}
exit ${2:-99} exit ${2:-99}
} }
......
...@@ -58,6 +58,8 @@ terminate () { ...@@ -58,6 +58,8 @@ terminate () {
# will make it receive a SIGPIPE eventually, which initiates # will make it receive a SIGPIPE eventually, which initiates
# termination. # termination.
exec 3<&- exec 3<&-
echo "waiting pm to terminate"
wait ${PM_PID}
exit ${2:-99} exit ${2:-99}
} }
......
...@@ -64,6 +64,8 @@ terminate () { ...@@ -64,6 +64,8 @@ terminate () {
# will make it receive a SIGPIPE eventually, which initiates # will make it receive a SIGPIPE eventually, which initiates
# termination. # termination.
exec 3<&- exec 3<&-
echo "waiting pm to terminate"
wait ${PM_PID}
exit ${2:-99} exit ${2:-99}
} }
......
...@@ -65,6 +65,8 @@ terminate () { ...@@ -65,6 +65,8 @@ terminate () {
# will make it receive a SIGPIPE eventually, which initiates # will make it receive a SIGPIPE eventually, which initiates
# termination. # termination.
exec 3<&- exec 3<&-
echo "waiting pm to terminate"
wait ${PM_PID}
exit ${2:-99} exit ${2:-99}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment