From: Michal Nowak Date: Fri, 23 Feb 2024 13:51:23 +0000 (+0100) Subject: Watch logs from start in dialup system test X-Git-Tag: v9.19.22~20^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=283a7ab17d31ab65ae8af83ec80e3eceee31bd8d;p=thirdparty%2Fbind9.git Watch logs from start in dialup system test When the first parametrized test takes a bit longer than usual, the zone transfer in ns3 may succeed before the second parametrized test is even started, and then watch_log_from_here() won't find the "Transfer status: success" message in the named log. Using watch_log_from_start() instead makes sure the test is more stable. --- diff --git a/bin/tests/system/dialup/tests_dialup_zone_transfer.py b/bin/tests/system/dialup/tests_dialup_zone_transfer.py index 4a60c5f5bb5..d49f80a3454 100644 --- a/bin/tests/system/dialup/tests_dialup_zone_transfer.py +++ b/bin/tests/system/dialup/tests_dialup_zone_transfer.py @@ -22,7 +22,7 @@ def test_dialup_zone_transfer(named_port, servers, ns): # Drop the RD flag from the query msg.flags -= dns.flags.RD ns1response = isctest.query.tcp(msg, "10.53.0.1") - with servers[f"ns{ns}"].watch_log_from_here() as watcher: + with servers[f"ns{ns}"].watch_log_from_start() as watcher: watcher.wait_for_line( f"transfer of 'example/IN' from 10.53.0.{ns-1}#{named_port}: Transfer status: success", timeout=90,