]> git.ipfire.org Git - thirdparty/curl.git/commit
tests: use dynamic ports numbers in pytest suite
authorStefan Eissing <stefan@eissing.org>
Mon, 6 Mar 2023 15:11:11 +0000 (16:11 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 6 Mar 2023 22:44:45 +0000 (23:44 +0100)
commitb0564c1d545d74da0c95665357d69d2bd2da04ae
tree73e83bdb6b6e1ed916283089fe8dae428472b368
parent257416023d179f84ab77a53406156871453e280f
tests: use dynamic ports numbers in pytest suite

- necessary ports are bound at start of test suite and then
  given to server fixtures for use.
- this make parallel use of pytest (in separate directories),
  practically safe for use as OS tend to not reuse such port numbers
  for a while

Closes #10692
tests/conftest.py
tests/http/config.ini.in
tests/http/conftest.py
tests/http/test_05_errors.py
tests/http/testenv/env.py
tests/http/testenv/ports.py [new file with mode: 0644]