From 9caf5f6ba95dc8b62bfe2a71bd01e71f55711ffb Mon Sep 17 00:00:00 2001 From: Simon Bruder Date: Tue, 6 Sep 2022 14:32:09 +0200 Subject: [PATCH] nixos/test-driver: fix formatting of closed port Co-authored-by: a-kenji --- nixos/lib/test-driver/test_driver/machine.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos/lib/test-driver/test_driver/machine.py b/nixos/lib/test-driver/test_driver/machine.py index 3ff3cf5645f8..61d37dfc4558 100644 --- a/nixos/lib/test-driver/test_driver/machine.py +++ b/nixos/lib/test-driver/test_driver/machine.py @@ -710,7 +710,7 @@ class Machine: status, _ = self.execute("nc -z localhost {}".format(port)) return status != 0 - with self.nested("waiting for TCP port {} to be closed"): + with self.nested("waiting for TCP port {} to be closed".format(port)): retry(port_is_closed) def start_job(self, jobname: str, user: Optional[str] = None) -> Tuple[int, str]: