21 lines
453 B
Bash
Executable File
21 lines
453 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
if env | grep -q -e '^TRAVIS=true$'; then
|
|
# inotify doesn't seem to work properly on travis
|
|
echo "Travis and Jenkins give wonky results here, skipping test!"
|
|
exit
|
|
fi
|
|
|
|
# run till completion
|
|
timeout --kill-after=15s 10s ./mgmt run --file t2.yaml --converged-timeout=5 --no-watch --allow-tmp-prefix &
|
|
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
|