mirror of
https://github.com/isc-projects/bind9.git
synced 2026-05-28 04:34:54 -04:00
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:
commit
4f3cfba6c0
1 changed files with 1 additions and 1 deletions
|
|
@ -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)}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue