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

This commit is contained in:
louiz’
2020-06-15 00:47:27 +02:00
parent 2e1ddeb654
commit e4550d324f
+3
View File
@@ -185,7 +185,10 @@ class IrcServerRunner(ProcessRunner):
def __init__(self):
super().__init__()
# Always start with a fresh state
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)