Skip to content

oeqa: target: ssh: log SSH errors during tests

Mathieu Dubois-Briand openembedded-core 1 version In review

Get series with b4
b4 am [email protected] change-id 20251007-mathieu-ssh-fails-0c01b1865511

Versions newest first

  1. v1 Latest4 patches 2 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4oeqa: target: ssh: Fail on SSH error even when errors are ignoredmeta/lib/oeqa/core/target/ssh.py+8 -40 replies
2/4oeqa: runtime: Ignore SSH errors during setup and tear downmeta/lib/oeqa/runtime/cases/logrotate.py meta/lib/oeqa/runtime/cases/weston.py+5 -42 replies
3/4oeqa: postactions: Ignore SSH errorsmeta/lib/oeqa/utils/postactions.py+2 -20 replies
4/4oeqa: runtime: ssh: Manage any SSH failure locallymeta/lib/oeqa/runtime/cases/ssh.py+1 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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.

---
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,

Signature · 1 line
Mathieu Dubois-Briand <[email protected]>