]> git.ipfire.org Git - thirdparty/bind9.git/commitdiff
Redirect dupsigs test output to proper logger
authorTom Krizek <tkrizek@isc.org>
Mon, 13 Mar 2023 14:13:44 +0000 (15:13 +0100)
committerTom Krizek <tkrizek@isc.org>
Wed, 22 Mar 2023 13:26:08 +0000 (14:26 +0100)
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.

(cherry picked from commit cbe2559f37095cf827b6cc03d333328aa1d2a385)

bin/tests/system/dupsigs/tests.sh

index 5e52ddd69b8d520bd9c444860715503839017152..25785a8dac51ce74ba0de14af241a5b42d2ad8c6 100644 (file)
@@ -39,10 +39,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 1009 ]
        then