From b3215125eadd0f01a9c482048dd604207e824cd2 Mon Sep 17 00:00:00 2001 From: Mark Andrews Date: Fri, 26 Jun 2020 16:08:18 +1000 Subject: [PATCH] Fix the dnstap roll test by: * fixing the find call. * checking that we rolled a file. --- bin/tests/system/dnstap/tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bin/tests/system/dnstap/tests.sh b/bin/tests/system/dnstap/tests.sh index 7321cc0b6d..0ed31056ae 100644 --- a/bin/tests/system/dnstap/tests.sh +++ b/bin/tests/system/dnstap/tests.sh @@ -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 ' (no versions)"