Merge pull request #5266 from hashicorp/b-background-dont-fail

ci: ignore background ping errors
This commit is contained in:
Mahmood Ali
2019-01-30 07:44:36 -05:00
committed by GitHub

View File

@@ -5,7 +5,7 @@ export PING_SLEEP=60
bash -c "while true; do echo \$(date) - building ...; sleep $PING_SLEEP; done" &
PING_LOOP_PID=$!
trap 'kill ${PING_LOOP_PID}' EXIT HUP INT QUIT TERM
trap 'kill ${PING_LOOP_PID} || true' EXIT HUP INT QUIT TERM
if [ "$RUN_STATIC_CHECKS" ]; then
make check
@@ -17,5 +17,6 @@ fi
NOMAD_SLOW_TEST=1 make test
TEST_OUTPUT=$?
kill $PING_LOOP_PID
kill $PING_LOOP_PID || true
exit $TEST_OUTPUT