Increase named startup wait time for runtime test
Occasionally, the allotted 10 seconds for the "running" line to appear in log after named is started proved insufficient in CI, especially during increased load. Give named up to 60 seconds to start up to mitigate this issue.
This commit is contained in:
@@ -95,7 +95,7 @@ echo_i "verifying that 'lock-file none' disables process check ($n)"
|
||||
ret=0
|
||||
testpid=$(run_named ns2 named$n.run -c named-alt3.conf -D runtime-ns2-extra-3)
|
||||
test -n "$testpid" || ret=1
|
||||
retry_quiet 10 check_named_log "running$" ns2/named$n.run || ret=1
|
||||
retry_quiet 60 check_named_log "running$" ns2/named$n.run || ret=1
|
||||
grep "another named process" ns2/named$n.run > /dev/null && ret=1
|
||||
kill_named ns2/named-alt3.pid || ret=1
|
||||
test -n "$testpid" && retry_quiet 10 check_pid $testpid || ret=1
|
||||
@@ -187,7 +187,7 @@ ret=0
|
||||
INSTANCE_NAME="runtime-ns2-extra-7-$(cat ctrl-chars)"
|
||||
testpid=$(run_named ns2 named$n.run -c named-alt7.conf -D "${INSTANCE_NAME}")
|
||||
test -n "$testpid" || ret=1
|
||||
retry_quiet 10 check_named_log "running$" ns2/named$n.run || ret=1
|
||||
retry_quiet 60 check_named_log "running$" ns2/named$n.run || ret=1
|
||||
grep 'running as.*\\177\\033' ns2/named$n.run > /dev/null || ret=1
|
||||
kill_named ns2/named.pid || ret=1
|
||||
test -n "$testpid" && retry_quiet 10 check_pid $testpid || ret=1
|
||||
@@ -200,7 +200,7 @@ ret=0
|
||||
INSTANCE_NAME="runtime-ns2-extra-8-$;"
|
||||
testpid=$(run_named ns2 named$n.run -c named-alt7.conf -D "${INSTANCE_NAME}")
|
||||
test -n "$testpid" || ret=1
|
||||
retry_quiet 10 check_named_log "running$" ns2/named$n.run || ret=1
|
||||
retry_quiet 60 check_named_log "running$" ns2/named$n.run || ret=1
|
||||
grep 'running as.*\\$\\;' ns2/named$n.run > /dev/null || ret=1
|
||||
kill_named ns2/named.pid || ret=1
|
||||
test -n "$testpid" && retry_quiet 10 check_pid $testpid || ret=1
|
||||
@@ -214,7 +214,7 @@ LONG_CMD_LINE=$(cat long-cmd-line)
|
||||
# shellcheck disable=SC2086
|
||||
testpid=$(run_named ns2 named$n.run $LONG_CMD_LINE -c "named-alt7.conf")
|
||||
test -n "$testpid" || ret=1
|
||||
retry_quiet 10 check_named_log "running$" ns2/named$n.run || ret=1
|
||||
retry_quiet 60 check_named_log "running$" ns2/named$n.run || ret=1
|
||||
grep "running as.*\.\.\.$" ns2/named$n.run > /dev/null || ret=1
|
||||
kill_named ns2/named.pid || ret=1
|
||||
test -n "$testpid" && retry_quiet 10 check_pid $testpid || ret=1
|
||||
@@ -232,7 +232,7 @@ if [ "$(id -u)" -eq 0 ]; then
|
||||
chmod 0700 "${TEMP_NAMED_DIR}"
|
||||
testpid=$(run_named "${TEMP_NAMED_DIR}" "${TEMP_NAMED_DIR}/named$n.run" -u nobody -c named-alt9.conf)
|
||||
test -n "$testpid" || ret=1
|
||||
retry_quiet 10 check_named_log "running$" "${TEMP_NAMED_DIR}/named$n.run" || ret=1
|
||||
retry_quiet 60 check_named_log "running$" "${TEMP_NAMED_DIR}/named$n.run" || ret=1
|
||||
[ -s "${TEMP_NAMED_DIR}/named9.pid" ] || ret=1
|
||||
grep "loading configuration: permission denied" "${TEMP_NAMED_DIR}/named$n.run" > /dev/null && ret=1
|
||||
kill_named "${TEMP_NAMED_DIR}/named9.pid" || ret=1
|
||||
|
||||
Reference in New Issue
Block a user