tools: tweak repo_servers_fixture() to redirect stderr to /dev/null

The default python http.server is very chatty, we don't need this
during the tests.
This commit is contained in:
Michael Vogt 2024-04-04 15:08:12 +02:00 committed by Brian C. Lane
parent 3a94b35a62
commit ffeb0169ff

View file

@ -60,7 +60,7 @@ def repo_servers_fixture():
addresses = []
for path in REPO_PATHS:
port = get_rand_port() # this is racy, but should be okay
p = sp.Popen(["python3", "-m", "http.server", str(port)], cwd=path, stdout=sp.PIPE)
p = sp.Popen(["python3", "-m", "http.server", str(port)], cwd=path, stdout=sp.PIPE, stderr=sp.DEVNULL)
procs.append(p)
# use last path component as name
name = os.path.basename(path.rstrip("/"))