Fix the dnstap roll test by:

* fixing the find call.
* checking that we rolled a file.
This commit is contained in:
Mark Andrews
2020-06-26 16:08:18 +10:00
parent 01176a8e7a
commit b3215125ea

View File

@@ -763,8 +763,8 @@ test_dnstap_roll() (
ns="$2"
n="$3"
$RNDCCMD -s "${ip}" dnstap -roll "${n}" | sed "s/^/${ns} /" | cat_i &&
files=$(find . -name "${ns}/dnstap.out.*" | wc -l) &&
test "$files" -le "${n}"
files=$(find "$ns" -name "dnstap.out.[0-9]" | wc -l) &&
test "$files" -le "${n}" && test "$files" -ge "1"
)
echo_i "checking 'rndc -roll <value>' (no versions)"