From 7b4736f82da388ab2b2f705fb8a03c044b254eba Mon Sep 17 00:00:00 2001 From: Rouven Czerwinski Date: Wed, 15 Jan 2025 10:31:09 +0100 Subject: [PATCH] remote/exporter: fix info message for version We receive the coordinator version in the hello message from the coordinator on the exporter side. Correctly print out that we connected to a coordinator with the sent back version instead of confusingly printing that this is the exporter version. Signed-off-by: Rouven Czerwinski --- labgrid/remote/exporter.py | 2 +- tests/conftest.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/labgrid/remote/exporter.py b/labgrid/remote/exporter.py index 7831ef8a7..020358d89 100755 --- a/labgrid/remote/exporter.py +++ b/labgrid/remote/exporter.py @@ -871,7 +871,7 @@ async def message_pump(self): logging.debug("received message %s", out_message) kind = out_message.WhichOneof("kind") if kind == "hello": - logging.info("connected to exporter version %s", out_message.hello.version) + logging.info("connected to coordinator version %s", out_message.hello.version) elif kind == "set_acquired_request": logging.debug("acquire request") success = False diff --git a/tests/conftest.py b/tests/conftest.py index b56b212fa..381f052e9 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -134,7 +134,7 @@ def start(self): cwd=self.cwd) try: self.spawn.expect('exporter name: testhost') - self.spawn.expect('connected to exporter') + self.spawn.expect('connected to coordinator') except Exception as e: raise Exception(f"exporter startup failed with {self.spawn.before}") from e