]> 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 09:16:46 +0000 (10:16 +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.

bin/tests/system/dupsigs/tests.sh

index 85218c68eed6eb6663b243037385f7bd81504254..7a899a6996565f263bad87098f2b798a7d52789a 100644 (file)
@@ -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