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.
This commit is contained in:
6
test/shell/wait.sh
Normal file
6
test/shell/wait.sh
Normal file
@@ -0,0 +1,6 @@
|
||||
# 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
|
||||
Reference in New Issue
Block a user