From d72b7044be3f0c646eea1be9546f873eec54f1c5 Mon Sep 17 00:00:00 2001 From: Mahmood Ali Date: Tue, 29 Jan 2019 15:19:35 -0500 Subject: [PATCH] ci: ignore background ping errors We attempt to kill background ping process twice, and sometimes the second kill fails, e.g. https://travis-ci.org/hashicorp/nomad/jobs/486050357, let's not fail the job. --- scripts/travis.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/scripts/travis.sh b/scripts/travis.sh index 541bbb587..8d523f28d 100755 --- a/scripts/travis.sh +++ b/scripts/travis.sh @@ -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