From 457b3edd444bfc0e226c692bf595cd4ba1fe61ee Mon Sep 17 00:00:00 2001 From: Sebastien Bourdeauducq Date: Sat, 24 Aug 2024 10:45:45 +0800 Subject: [PATCH] test_client: make master termination easier to debug --- artiq/test/test_client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/artiq/test/test_client.py b/artiq/test/test_client.py index aa6cae692..ac2b8c741 100644 --- a/artiq/test/test_client.py +++ b/artiq/test/test_client.py @@ -44,7 +44,8 @@ class TestClient(unittest.TestCase): self.device_db_path, *args], encoding="utf8", env=get_env(), text=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) while self.master.stdout.readline().strip() != "ARTIQ master is now ready.": - pass + if self.master.poll() is not None: + raise IOError("master terminated unexpectedly") def check_and_terminate_master(self): while not ("test content" in self.master.stdout.readline()):