mirror of
https://gitlab.isc.org/isc-projects/bind9
synced 2025-08-31 06:25:31 +00:00
Check for proper log message in kasp test
The log message is supposed to contain the zone name which was erroneously omitted, but didn't pop up during tests, since return code was silently ignored. Now it actually waits for the proper log message rather than being an equivalent of 3 second sleep (which was also sufficient to make the test pass, thus we detected no failure).
This commit is contained in:
@@ -328,7 +328,7 @@ ret=0
|
|||||||
|
|
||||||
nextpart $DIR/named.run > /dev/null
|
nextpart $DIR/named.run > /dev/null
|
||||||
rndccmd 10.53.0.3 loadkeys "$ZONE" > /dev/null || log_error "rndc loadkeys zone ${ZONE} failed"
|
rndccmd 10.53.0.3 loadkeys "$ZONE" > /dev/null || log_error "rndc loadkeys zone ${ZONE} failed"
|
||||||
wait_for_log 3 "keymgr: done" $DIR/named.run
|
wait_for_log 3 "keymgr: $ZONE done" $DIR/named.run
|
||||||
privkey_stat2=$(key_stat "${basefile}.private")
|
privkey_stat2=$(key_stat "${basefile}.private")
|
||||||
pubkey_stat2=$(key_stat "${basefile}.key")
|
pubkey_stat2=$(key_stat "${basefile}.key")
|
||||||
state_stat2=$(key_stat "${basefile}.state")
|
state_stat2=$(key_stat "${basefile}.state")
|
||||||
|
Reference in New Issue
Block a user