summaryrefslogtreecommitdiff
path: root/tests/end_to_end
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2016-04-21 17:48:39 +0200
committerlouiz’ <louiz@louiz.org>2016-04-22 10:49:07 +0200
commit3ddca86851786b5d2bb24a29ba0f73567e0c2bbc (patch)
tree0deff93afd8f2f382fc108adca502e72a8c6cc2b /tests/end_to_end
parent71b3f8f50b2831142ec50c725f07333ab948c169 (diff)
downloadbiboumi-3ddca86851786b5d2bb24a29ba0f73567e0c2bbc.tar.gz
biboumi-3ddca86851786b5d2bb24a29ba0f73567e0c2bbc.tar.bz2
biboumi-3ddca86851786b5d2bb24a29ba0f73567e0c2bbc.tar.xz
biboumi-3ddca86851786b5d2bb24a29ba0f73567e0c2bbc.zip
Debug and exit if IRC server startup fails
Diffstat (limited to 'tests/end_to_end')
-rw-r--r--tests/end_to_end/__main__.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index 2efbf24..0eba231 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -438,6 +438,10 @@ if __name__ == '__main__':
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)
+ if not res:
+ print("IRC server failed to start, exiting")
+ sys.exit(1)
if b"now running in foreground mode" in res:
break
print("irc server started.")