Skip to content

Commit

Permalink
Update test script (#2011)
Browse files Browse the repository at this point in the history
TIMEOUT_DEFAULT=180 (core_test takes longer than it used to and can sometimes timeout before completion)
retry loop initialized to work until 12-31-2019 23:59:59 UTC
shorted wait for socket cleanup
  • Loading branch information
Russel Waters committed May 21, 2019
1 parent aa77adb commit 3517e16
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ci/test.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env bash

build_dir=${1-${PWD}}
TIMEOUT_DEFAULT=120
TIMEOUT_DEFAULT=180

BUSYBOX_BASH=${BUSYBOX_BASH-0}

Expand Down Expand Up @@ -44,7 +44,7 @@ run_tests() {
TIMEOUT_TIME_ARG=""
fi

if [ "$(date +%s)" -lt 1555718400 ]; then
if [ "$(date +%s)" -lt 1577836799 ]; then
tries=(_initial_ 1 2 3 4 5 6 7 8 9)
else
tries=(_initial_)
Expand All @@ -55,7 +55,7 @@ run_tests() {
echo "core_test failed: ${core_test_res}, retrying (try=${try})"

# Wait a while for sockets to be all cleaned up by the kernel
sleep $[60 + (${RANDOM} % 30)]
sleep $[30 + (${RANDOM} % 30)]
fi

${TIMEOUT_CMD} ${TIMEOUT_TIME_ARG} ${TIMEOUT_SEC-${TIMEOUT_DEFAULT}} ./core_test
Expand Down

0 comments on commit 3517e16

Please sign in to comment.