From 9999bbfac6ab5eb2e3b8fb8e5ef345ba87a7a266 Mon Sep 17 00:00:00 2001 From: Giacomo Vercesi Date: Wed, 12 Oct 2022 15:56:45 +0200 Subject: [PATCH] daemon-self-test: fix daemon output Fix the `fail` function, to properly capture the output of the daemon process in case of failure. --- python/revng/cli/_commands/daemon_self_test.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/python/revng/cli/_commands/daemon_self_test.py b/python/revng/cli/_commands/daemon_self_test.py index 6e1148e18..f91c96e0c 100755 --- a/python/revng/cli/_commands/daemon_self_test.py +++ b/python/revng/cli/_commands/daemon_self_test.py @@ -90,8 +90,7 @@ class DaemonSelfTestCommand(Command): async def get_connection(self) -> Tuple[aiohttp.BaseConnector, str]: if self.url.startswith("unix:"): return (aiohttp.UnixConnector(self.url.replace("unix:", "", 1)), "dummy") - else: - return (aiohttp.TCPConnector(), self.url) + return (aiohttp.TCPConnector(), self.url) async def run_self_test(self, executable_path: str): try: