commit 553b357f5cbb1052270e89a36b9f112d721c02ce
Author: Nicki Křížek <nicki@isc.org>
Date: Mon Sep 21 12:49:33 2026 +0000
Replace the inline Perl epoch-time read in the checkconf test
Assisted-by: Claude:claude-fable-5-1
diff --git a/bin/tests/system/checkconf/tests.sh b/bin/tests/system/checkconf/tests.sh
index fa1763966e..2352b59cc2 100644
--- a/bin/tests/system/checkconf/tests.sh
+++ b/bin/tests/system/checkconf/tests.sh
@@ -588,7 +588,7 @@ status=$((status + ret))
# By 23:59 11 October 2026 the IANA root zone should be being signed with the
# 2026 trust anchor. Prior to that check that we are warning that we are
# missing the 2017 trust anchor.
-if test $($PERL -e 'print time()."\n";') -lt 1791676800; then
+if test $(date +%s) -lt 1791676800; then
n=$((n + 1))
echo_i "check that the 2026 ICANN ROOT KSK alone generates a warning ($n)"
ret=0