From 4c45c3f8f23ff12ea6939c3edd911bf7eadbc385 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B8rn=20Forsman?= Date: Fri, 30 Dec 2022 12:11:35 +0100 Subject: [PATCH] nixos/test-driver: use ASCII single quotes everywhere A few places used Unicode U+2018/U+2019 left/right single quotes (but not always correctly balanced). Let's just use plain ASCII single quotes everywhere. --- nixos/lib/test-driver/test_driver/machine.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nixos/lib/test-driver/test_driver/machine.py b/nixos/lib/test-driver/test_driver/machine.py index cbf3aa733c44..322b71157787 100644 --- a/nixos/lib/test-driver/test_driver/machine.py +++ b/nixos/lib/test-driver/test_driver/machine.py @@ -491,14 +491,14 @@ class Machine: def require_unit_state(self, unit: str, require_state: str = "active") -> None: with self.nested( - f"checking if unit ‘{unit}’ has reached state '{require_state}'" + f"checking if unit '{unit}' has reached state '{require_state}'" ): info = self.get_unit_info(unit) state = info["ActiveState"] if state != require_state: raise Exception( - f"Expected unit ‘{unit}’ to to be in state " - f"'{require_state}' but it is in state ‘{state}’" + f"Expected unit '{unit}' to to be in state " + f"'{require_state}' but it is in state '{state}'" ) def _next_newline_closed_block_from_shell(self) -> str: @@ -676,7 +676,7 @@ class Machine: retry(tty_matches) def send_chars(self, chars: str, delay: Optional[float] = 0.01) -> None: - with self.nested(f"sending keys ‘{chars}‘"): + with self.nested(f"sending keys '{chars}'"): for char in chars: self.send_key(char, delay) @@ -687,7 +687,7 @@ class Machine: status, _ = self.execute(f"test -e {filename}") return status == 0 - with self.nested(f"waiting for file ‘{filename}‘"): + with self.nested(f"waiting for file '{filename}'"): retry(check_file) def wait_for_open_port(self, port: int, addr: str = "localhost") -> None: