From: Tom Krizek Date: Mon, 13 Mar 2023 14:13:44 +0000 (+0100) Subject: Redirect dupsigs test output to proper logger X-Git-Tag: v9.19.12~71^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=cbe2559f37095cf827b6cc03d333328aa1d2a385;p=thirdparty%2Fbind9.git Redirect dupsigs test output to proper logger Ensure messages from dupsigs system test end up in its log rather than stdout. Previously, the output was hard to debug when running the tests in parallel and messages wouldn't end up in the dupsigs.log. --- diff --git a/bin/tests/system/dupsigs/tests.sh b/bin/tests/system/dupsigs/tests.sh index 85218c68eed..7a899a69965 100644 --- a/bin/tests/system/dupsigs/tests.sh +++ b/bin/tests/system/dupsigs/tests.sh @@ -38,10 +38,10 @@ end=$((start + 140)) while [ $now -lt $end ]; do et=$((now - start)) - echo "............... $et ............" - $JOURNALPRINT ns1/signing.test.db.signed.jnl | $PERL check_journal.pl + echo_i "............... $et ............" + $JOURNALPRINT ns1/signing.test.db.signed.jnl | $PERL check_journal.pl | cat_i $DIG axfr signing.test -p ${PORT} @10.53.0.1 > dig.out.at$et - awk '$4 == "RRSIG" { print $11 }' dig.out.at$et | sort | uniq -c + awk '$4 == "RRSIG" { print $11 }' dig.out.at$et | sort | uniq -c | cat_i lines=`awk '$4 == "RRSIG" { print}' dig.out.at$et | wc -l` if [ ${et} -ne 0 -a ${lines} -ne 1008 ] then