mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-20 03:30:09 +01:00
test/cloud-meta-mock: do not print what we listen on if we got a FD
This message is useless for non-interactive use and clobbers over otherwise very appealing test output. The callers knows what we're going to listen on, it passed us the file descriptor.
This commit is contained in:
parent
98f8224376
commit
f7c8597835
1 changed files with 4 additions and 1 deletions
|
|
@ -276,7 +276,10 @@ httpd = SocketHTTPServer(
|
||||||
allow_default=allow_default,
|
allow_default=allow_default,
|
||||||
)
|
)
|
||||||
|
|
||||||
print("Listening on http://%s:%d" % (httpd.server_address[0], httpd.server_address[1]))
|
if fileno is None:
|
||||||
|
print(
|
||||||
|
"Listening on http://%s:%d" % (httpd.server_address[0], httpd.server_address[1])
|
||||||
|
)
|
||||||
httpd.server_activate()
|
httpd.server_activate()
|
||||||
|
|
||||||
httpd.serve_forever()
|
httpd.serve_forever()
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue