Check for exit status of tests

This commit is contained in:
James Shubin
2016-08-10 08:51:38 -04:00
parent 4ca98b5f17
commit 0c7b05b233
7 changed files with 28 additions and 16 deletions

View File

@@ -8,6 +8,7 @@ fi
# run till completion
timeout --kill-after=20s 15s ./mgmt run --file t6.yaml --no-watch &
pid=$!
sleep 1s # let it converge
test -e /tmp/mgmt/f1
test -e /tmp/mgmt/f2
@@ -28,4 +29,5 @@ test -e /tmp/mgmt/f2
killall -SIGINT mgmt # send ^C to exit mgmt
. wait.sh # wait for mgmt
wait $pid # get exit status
exit $?