From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Thu, 4 Dec 2025 14:22:42 +0000 (-0500) Subject: Allow peeking at cache using an env var X-Git-Tag: rec-5.4.0-beta1~63^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=72a40b20bd33e8ead7561322cae3059608f13248;p=thirdparty%2Fpdns.git Allow peeking at cache using an env var Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com> --- diff --git a/regression-tests.recursor-dnssec/test_RoutingTag.py b/regression-tests.recursor-dnssec/test_RoutingTag.py index 3e1fc53deb..34100114ba 100644 --- a/regression-tests.recursor-dnssec/test_RoutingTag.py +++ b/regression-tests.recursor-dnssec/test_RoutingTag.py @@ -147,7 +147,9 @@ end query = dns.message.make_query(nameECS, 'TXT', 'IN') self.sendECSQuery(query, expected2) - return # remove this line to peek at cache + if not "PEEK_AT_CACHE" in os.environ: # set to peek at cache + return + rec_controlCmd = [os.environ['RECCONTROL'], '--config-dir=%s' % 'configs/' + self._confdir, 'dump-cache', 'x'] @@ -228,7 +230,9 @@ end query = dns.message.make_query(nameECS, 'TXT', 'IN') self.sendECSQuery(query, expected2) - return #remove this line to peek at cache + if not "PEEK_AT_CACHE" in os.environ: # set to peek at cache + return + rec_controlCmd = [os.environ['RECCONTROL'], '--config-dir=%s' % 'configs/' + self._confdir, 'dump-cache y']