summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-04-22 10:23:25 +0200
committerlouiz’ <louiz@louiz.org>2016-04-22 10:49:07 +0200
commit327c821f4630b283e08a0b0875a6e7073af2423d (patch)
tree27884b7b008ab70a9c12a26b33c6c958a31defee /tests
parentee9b7f55bb84b00a3e33a63dd3b2d3878a905b77 (diff)
downloadbiboumi-327c821f4630b283e08a0b0875a6e7073af2423d.tar.gz
biboumi-327c821f4630b283e08a0b0875a6e7073af2423d.tar.bz2
biboumi-327c821f4630b283e08a0b0875a6e7073af2423d.tar.xz
biboumi-327c821f4630b283e08a0b0875a6e7073af2423d.zip
Write irc output into a file
Diffstat (limited to 'tests')
-rw-r--r--tests/end_to_end/__main__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index 0eba231..1043a95 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -433,14 +433,15 @@ if __name__ == '__main__':
failures = 0
+ irc_output = open("irc_output.txt", "w")
irc = IrcServerRunner()
print("Starting irc server…")
asyncio.get_event_loop().run_until_complete(irc.start())
while True:
res = asyncio.get_event_loop().run_until_complete(irc.process.stderr.readline())
- print(res)
+ irc_output.write(res.decode())
if not res:
- print("IRC server failed to start, exiting")
+ print("IRC server failed to start, see irc_output.txt for more details. Exiting…")
sys.exit(1)
if b"now running in foreground mode" in res:
break