Failures might be caused by inotify not working correctly in travis. This is probably because travis has things mounted over NFS. https://github.com/travis-ci/travis-ci/issues/2342
20 lines
465 B
Bash
Executable File
20 lines
465 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
|
|
|
|
. etcd.sh # start etcd as job # 1
|
|
|
|
# run till completion
|
|
timeout --kill-after=15s 10s ./mgmt run --file t2.yaml --converged-timeout=5 --no-watch &
|
|
|
|
. wait.sh # wait for everything except etcd
|
|
|
|
test -e /tmp/mgmt/f1
|
|
test -e /tmp/mgmt/f2
|
|
test -e /tmp/mgmt/f3
|
|
test ! -e /tmp/mgmt/f4
|