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.
This commit is contained in:
Bjørn Forsman 2022-12-30 12:11:35 +01:00
parent a3f612564c
commit 4c45c3f8f2

View file

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