Commit 82e83d5d authored by Evan Hunt's avatar Evan Hunt

fix testing errors

- the checkprivate function in the dnssec test set ret=0, erasing
  results from previous tests and making the test appear to have passed
  when it shouldn't have
- checkprivate needed a delay loop to ensure there was time for all
  private signing records to be updated before the test
parent 5da2d171
Pipeline #8692 passed with stages
in 17 minutes and 36 seconds
......@@ -57,16 +57,18 @@ showprivate () {
}
# check that signing records are marked as complete
checkprivate () {
ret=0
x=$(showprivate "$@")
echo "$x" | grep incomplete >/dev/null 2>&1 && ret=1
[ "$ret" -eq 1 ] && {
echo "$x"
echo_i "failed"
checkprivate () { (
for i in 1 2 3 4 5 6 7 8 9 10; do
ret=0
showprivate "$@" | grep incomplete >/dev/null 2>&1 && { ret=1; sleep 1; continue; }
break
done
[ $ret -eq 1 ] && {
echo_d "$1 signing incomplete"
return 1
}
return "$ret"
}
return 0
) }
# check that a zone file is raw format, version 0
israw0 () {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment