Commit 749df056 authored by Evan Hunt's avatar Evan Hunt
Browse files

improve dyndb test resilience

- no longer grep for specific line numbers when checking
  parameter logging, as those can change
- report the failure immediatey if parameter check fails
parent 9425d6ba
Pipeline #334 canceled with stages
in 8 minutes and 32 seconds
......@@ -129,8 +129,9 @@ test_del test4.ipv6.example.nil. AAAA || ret=1
status=`expr $status + $ret`
newtest "checking parameter logging"
grep "loading params for dyndb 'sample' from .*named.conf:36" ns1/named.run > /dev/null || ret=1
grep "loading params for dyndb 'sample2' from .*named.conf:37" ns1/named.run > /dev/null || ret=1
grep "loading params for dyndb 'sample' from .*named.conf:" ns1/named.run > /dev/null || ret=1
grep "loading params for dyndb 'sample2' from .*named.conf:" ns1/named.run > /dev/null || ret=1
[ $ret -eq 1 ] && echo_i "failed"
status=`expr $status + $ret`
echo_i "checking dyndb still works after reload"
......
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