Commit e4550d32 authored by louiz’'s avatar louiz’

e2e: do not fail to start if no irc database exist yet

parent 2e1ddeb6
Pipeline #3281 failed with stages
in 21 minutes and 8 seconds
......@@ -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)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment