]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Check for proper log message in kasp test
authorTom Krizek <tkrizek@isc.org>
Thu, 22 Jun 2023 15:57:22 +0000 (17:57 +0200)
committerTom Krizek <tkrizek@isc.org>
Thu, 22 Jun 2023 17:19:05 +0000 (19:19 +0200)
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).

bin/tests/system/kasp/tests.sh

index 9766c380c8ffb662c5e6c18c47ed347ffc93057d..8378feff722806b97ead59e1ab2b5babed3b6a08 100644 (file)
@@ -328,7 +328,7 @@ ret=0
 
 nextpart $DIR/named.run > /dev/null
 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")
 pubkey_stat2=$(key_stat "${basefile}.key")
 state_stat2=$(key_stat "${basefile}.state")