Truncate wait_for_web_response.log before each wait invocation

This commit is contained in:
Jason Ertel
2021-05-19 18:37:08 -04:00
parent 25e2edc6d2
commit b440f73336

View File

@@ -487,6 +487,7 @@ wait_for_web_response() {
expected=$2 expected=$2
maxAttempts=${3:-300} maxAttempts=${3:-300}
logfile=/root/wait_for_web_response.log logfile=/root/wait_for_web_response.log
truncate -s 0 "$logfile"
attempt=0 attempt=0
while [[ $attempt -lt $maxAttempts ]]; do while [[ $attempt -lt $maxAttempts ]]; do
attempt=$((attempt+1)) attempt=$((attempt+1))