From 2c2c9525b79c4a63f3d1ef694793a2ba0cd07956 Mon Sep 17 00:00:00 2001 From: Mathieu Dubois-Briand Date: Fri, 26 Sep 2025 17:31:24 +0200 Subject: [PATCH] oeqa: ssh: Add log line on SSH failure Signed-off-by: Mathieu Dubois-Briand --- meta/lib/oeqa/core/target/ssh.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/meta/lib/oeqa/core/target/ssh.py b/meta/lib/oeqa/core/target/ssh.py index 8b5c450a058..fb9a530c4fa 100644 --- a/meta/lib/oeqa/core/target/ssh.py +++ b/meta/lib/oeqa/core/target/ssh.py @@ -69,6 +69,10 @@ class OESSHTarget(OETarget): if status and not ignore_status: raise AssertionError("Command '%s' returned non-zero exit " "status %d:\n%s" % (command, status, output)) + elif status == 255: + raise AssertionError("ssh exited with status '255' for command " + "'%s': this is likely an SSH failure" + % (command,)) return (status, output) -- 2.47.3