Use explicit result codes for 'rndc dnssec' cmd

It is better to add new result codes than to overload existing codes.

(cherry picked from commit 70d1ec432f)
This commit is contained in:
Matthijs Mekking
2020-09-04 11:42:52 +02:00
parent 6bbb2a8581
commit 63652ca58f
6 changed files with 37 additions and 30 deletions

View File

@@ -2815,7 +2815,7 @@ n=$((n+1))
echo_i "check that rndc dnssec -rollover fails if key is inactive ($n)"
ret=0
rndccmd "$SERVER" dnssec -rollover -key $(key_get KEY4 ID) "$ZONE" > rndc.dnssec.rollover.out.$ZONE.$n
grep "key is not active and cannot be rolled" rndc.dnssec.rollover.out.$ZONE.$n > /dev/null || log_error "bad error message"
grep "key is not actively signing" rndc.dnssec.rollover.out.$ZONE.$n > /dev/null || log_error "bad error message"
test "$ret" -eq 0 || echo_i "failed"
status=$((status+ret))