summaryrefslogtreecommitdiff
path: root/tests/end_to_end
diff options
context:
space:
mode:
authorlouiz’ <louiz@louiz.org>2020-06-15 00:47:27 +0200
committerlouiz’ <louiz@louiz.org>2020-06-15 00:47:27 +0200
commite4550d324feba5d054ded16c89a4628ed84454de (patch)
tree0b5e427c04058cf6171052eb54adbef75e27e3e0 /tests/end_to_end
parent2e1ddeb6547e140e9651231fedcd00e8ee4b1ccd (diff)
downloadbiboumi-e4550d324feba5d054ded16c89a4628ed84454de.tar.gz
biboumi-e4550d324feba5d054ded16c89a4628ed84454de.tar.bz2
biboumi-e4550d324feba5d054ded16c89a4628ed84454de.tar.xz
biboumi-e4550d324feba5d054ded16c89a4628ed84454de.zip
e2e: do not fail to start if no irc database exist yet
Diffstat (limited to 'tests/end_to_end')
-rw-r--r--tests/end_to_end/__main__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/end_to_end/__main__.py b/tests/end_to_end/__main__.py
index 6e753f6..be5c789 100644
--- a/tests/end_to_end/__main__.py
+++ b/tests/end_to_end/__main__.py
@@ -185,7 +185,10 @@ class IrcServerRunner(ProcessRunner):
def __init__(self):
super().__init__()
# Always start with a fresh state
- os.remove("ircd.db")
+ try:
+ os.remove("ircd.db")
+ except FileNotFoundError:
+ pass
subprocess.run(["oragono", "mkcerts", "--conf", os.getcwd() + "/../tests/end_to_end/ircd.yaml"])
self.create = asyncio.create_subprocess_exec("oragono", "run", "--conf", os.getcwd() + "/../tests/end_to_end/ircd.yaml",
stderr=asyncio.subprocess.PIPE)