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,10 +8,13 @@ fi
# run till completion
timeout --kill-after=15s 10s ./mgmt run --file t2.yaml --converged-timeout=5 --no-watch &
. wait.sh # wait for mgmt
pid=$!
wait $pid # get exit status
e=$?
test -e /tmp/mgmt/f1
test -e /tmp/mgmt/f2
test -e /tmp/mgmt/f3
test ! -e /tmp/mgmt/f4
exit $e