test_client: make master termination easier to debug

This commit is contained in:
Sebastien Bourdeauducq 2024-08-24 10:45:45 +08:00
parent fb6609b8a3
commit 9e11e10787

View File

@ -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()):