diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-06 16:11:30 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2023-02-06 16:11:30 +0000 |
commit | aa2fe8ccbfcb117efa207d10229eeeac5d0f97c7 (patch) | |
tree | 941cbdd387b41c1a81587c20a6df9f0e5e0ff7ab /.travis/utils.sh | |
parent | Adding upstream version 1.37.1. (diff) | |
download | netdata-aa2fe8ccbfcb117efa207d10229eeeac5d0f97c7.tar.xz netdata-aa2fe8ccbfcb117efa207d10229eeeac5d0f97c7.zip |
Adding upstream version 1.38.0.upstream/1.38.0
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '.travis/utils.sh')
-rw-r--r-- | .travis/utils.sh | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/.travis/utils.sh b/.travis/utils.sh deleted file mode 100644 index d084a7aef..000000000 --- a/.travis/utils.sh +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env bash - -# Prevent travis from timing out after 10 minutes of no output -tick() { - (while true; do sleep 300; echo; done) & - local PID=$! - disown - - "$@" - local RET=$? - - kill $PID - return $RET -} -export -f tick - -retry() { - local tries=$1 - shift - - local i=0 - while [ "$i" -lt "$tries" ]; do - "$@" && return 0 - sleep $((2**((i++)))) - done - - return 1 -} -export -f retry |