Files
mgmt/test/shell/wait.sh
James Shubin 1a164cee3e Fix file resource regression
I added a regression to the file resource. This was caused by two
different bugs that I added when I switched the API to use checkapply. I
would have caught these issues, except my test cases *also* had a bug! I
think I've fixed all three issues now.

Lastly, when running on travis, the tests behave very differently! Some
of the tests actually fail, and it's not clear why. As a result, we had
to disable them! I guess you get what you pay for.
2016-02-28 02:18:46 -05:00

10 lines
291 B
Bash

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