[9.20] fix: test: Handle example3.db being modified in upforwd system test

The zone file for example3 (ns1/example3.db) can be modified in the
upforwd test as example3 is updated as part of the test.  Whether
the zone is written out or not by the end of the test is timing
dependent.  Rename ns1/example3.db to ns1/example3.db.in and copy it to
ns1/example3.db in setup so we don't trigger post test changes checks.

Closes #5180

Backport of MR !10160

Merge branch 'backport-5180-create-example3-in-setup-9.20' into 'bind-9.20'

See merge request isc-projects/bind9!10163
This commit is contained in:
Mark Andrews 2025-02-25 22:15:40 +00:00
commit a8f422d3dc
3 changed files with 2 additions and 0 deletions

View file

@ -14,6 +14,7 @@
. ../conf.sh
cp -f ns1/example1.db ns1/example.db
cp -f ns1/example3.db.in ns1/example3.db
cp -f ns3/noprimary.db ns3/noprimary1.db
copy_setports ns1/named.conf.in ns1/named.conf

View file

@ -26,6 +26,7 @@ pytestmark = pytest.mark.extra_artifacts(
"ns1/example.db",
"ns1/example2-toomanykeys.db",
"ns1/example2.db",
"ns1/example3.db",
"ns3/dnstap.conf",
"ns3/dnstap.out",
"ns3/noprimary1.db",