mbox series

[0/4] oeqa: target: ssh: log SSH errors during tests

Message ID 20251007-mathieu-ssh-fails-v1-0-a6affee3571b@bootlin.com
Headers show
Series oeqa: target: ssh: log SSH errors during tests | expand

Message

Mathieu Dubois-Briand Oct. 7, 2025, 5:38 p.m. UTC
Most tests running SSH commands ask for no error to be raised when the
returned status is not 0, and handle the returned status themselves. But
most of the tests do not check if the non-zero status is caused by a
fail of the command run on the target or by a fail of SSH itself.

This can lead to confusing test results, such as the one described in
bugzilla issue #15981.

This series introduce a check for SSH failures by default, only bypassed
in some specific cases.

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
---
Mathieu Dubois-Briand (4):
      oeqa: target: ssh: Fail on SSH error even when errors are ignored
      oeqa: runtime: Ignore SSH errors during setup and tear down
      oeqa: postactions: Ignore SSH errors
      oeqa: runtime: ssh: Manage any SSH failure locally

 meta/lib/oeqa/core/target/ssh.py         | 12 ++++++++----
 meta/lib/oeqa/runtime/cases/logrotate.py |  7 ++++---
 meta/lib/oeqa/runtime/cases/ssh.py       |  2 +-
 meta/lib/oeqa/runtime/cases/weston.py    |  2 +-
 meta/lib/oeqa/utils/postactions.py       |  4 ++--
 5 files changed, 16 insertions(+), 11 deletions(-)
---
base-commit: 9dfd4f44d4f40e7926dc88cb564baa2345c2a24f
change-id: 20251007-mathieu-ssh-fails-0c01b1865511

Best regards,