From 281f0277492cd62f778f787868e61caafc9f53b9 Mon Sep 17 00:00:00 2001 From: Joachim Wiberg Date: Mon, 16 Mar 2026 09:39:15 +0100 Subject: [PATCH] test/infamy: wait for transport reachability after test_reset() test_reset() triggers a config reload which causes services such as rousette to restart. Wait for the transport to become reachable again before returning from attach(), preventing subsequent API calls from racing with a still-restarting backend. Signed-off-by: Joachim Wiberg --- test/infamy/env.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/infamy/env.py b/test/infamy/env.py index 19ca2957..6a6359ac 100644 --- a/test/infamy/env.py +++ b/test/infamy/env.py @@ -166,6 +166,7 @@ class Env(object): yangdir=self.args.yangdir) if test_reset: dev.test_reset() + util.until(lambda: self.is_reachable(node, cport), 30) return dev if protocol == "ssh": @@ -181,6 +182,7 @@ class Env(object): yangdir=self.args.yangdir) if test_reset: dev.test_reset() + util.until(lambda: self.is_reachable(node, cport), 30) return dev raise Exception(f"Unsupported management procotol \"{protocol}\"")