]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
oeqa: ssh: Add log line on SSH failure
authorMathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Fri, 26 Sep 2025 15:31:24 +0000 (17:31 +0200)
committerMathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Fri, 26 Sep 2025 15:31:24 +0000 (17:31 +0200)
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/lib/oeqa/core/target/ssh.py

index 8b5c450a058fd172f36af6cbd9569983aa3d2d51..fb9a530c4fa6d140b07be0794b1ed02ea62c4b48 100644 (file)
@@ -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)