Files
mgmt/test/shell/wait.sh
James Shubin d5367b7a1c Add shell based test harness
This allows you to simulate one or more simultaneously running mgmt
processes. It should be easy to use by following the test cases provided.
2016-01-21 00:23:25 -05:00

7 lines
197 B
Bash

# NOTE: boiler plate to wait on mgmt; source with: . wait.sh; should NOT be +x
for j in `jobs -p`
do
[ $j -eq `pidof etcd` ] && continue # don't wait for etcd
wait $j # wait for mgmt job $j
done