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:
parent
3a94b35a62
commit
ffeb0169ff
1 changed files with 1 additions and 1 deletions
|
|
@ -60,7 +60,7 @@ def repo_servers_fixture():
|
||||||
addresses = []
|
addresses = []
|
||||||
for path in REPO_PATHS:
|
for path in REPO_PATHS:
|
||||||
port = get_rand_port() # this is racy, but should be okay
|
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)
|
procs.append(p)
|
||||||
# use last path component as name
|
# use last path component as name
|
||||||
name = os.path.basename(path.rstrip("/"))
|
name = os.path.basename(path.rstrip("/"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue