Update test script (#2011)
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
This commit is contained in:
parent
fb093ff189
commit
68d1674d96
1 changed files with 3 additions and 3 deletions
|
|
@ -1,7 +1,7 @@
|
||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
build_dir=${1-${PWD}}
|
build_dir=${1-${PWD}}
|
||||||
TIMEOUT_DEFAULT=120
|
TIMEOUT_DEFAULT=180
|
||||||
|
|
||||||
BUSYBOX_BASH=${BUSYBOX_BASH-0}
|
BUSYBOX_BASH=${BUSYBOX_BASH-0}
|
||||||
|
|
||||||
|
|
@ -44,7 +44,7 @@ run_tests() {
|
||||||
TIMEOUT_TIME_ARG=""
|
TIMEOUT_TIME_ARG=""
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ "$(date +%s)" -lt 1555718400 ]; then
|
if [ "$(date +%s)" -lt 1577836799 ]; then
|
||||||
tries=(_initial_ 1 2 3 4 5 6 7 8 9)
|
tries=(_initial_ 1 2 3 4 5 6 7 8 9)
|
||||||
else
|
else
|
||||||
tries=(_initial_)
|
tries=(_initial_)
|
||||||
|
|
@ -55,7 +55,7 @@ run_tests() {
|
||||||
echo "core_test failed: ${core_test_res}, retrying (try=${try})"
|
echo "core_test failed: ${core_test_res}, retrying (try=${try})"
|
||||||
|
|
||||||
# Wait a while for sockets to be all cleaned up by the kernel
|
# Wait a while for sockets to be all cleaned up by the kernel
|
||||||
sleep $[60 + (${RANDOM} % 30)]
|
sleep $[30 + (${RANDOM} % 30)]
|
||||||
fi
|
fi
|
||||||
|
|
||||||
${TIMEOUT_CMD} ${TIMEOUT_TIME_ARG} ${TIMEOUT_SEC-${TIMEOUT_DEFAULT}} ./core_test
|
${TIMEOUT_CMD} ${TIMEOUT_TIME_ARG} ${TIMEOUT_SEC-${TIMEOUT_DEFAULT}} ./core_test
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue