Merge branch 'tkrizek-fix-pytest-base-port-9.18' into 'bind-9.18'

[9.18] Fix base_port calculation in pytest runner

See merge request isc-projects/bind9!7983
This commit is contained in:
Tom Krizek 2023-05-30 15:37:37 +00:00
commit 4f3cfba6c0

View file

@ -312,7 +312,7 @@ else:
# worker threads, multiple tests may have same port values assigned. If
# these tests are then executed simultaneously, the test results will
# be misleading.
base_port = int(time.time() // 3600) % (port_max - port_min)
base_port = int(time.time() // 3600) % (port_max - port_min) + port_min
return {mod: base_port + i * PORTS_PER_TEST for i, mod in enumerate(modules)}