From e4550d324feba5d054ded16c89a4628ed84454de Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?louiz=E2=80=99?= Date: Mon, 15 Jun 2020 00:47:27 +0200 Subject: e2e: do not fail to start if no irc database exist yet --- tests/end_to_end/__main__.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- cgit v1.2.3