mbox series

[v2,0/2] oeqa: runtime: Clean setup/tear down function on weston and logrotate

Message ID 20251016-mathieu-test-clean-setup-v2-0-c4295b9334b8@bootlin.com
Headers show
Series oeqa: runtime: Clean setup/tear down function on weston and logrotate | expand

Message

Mathieu Dubois-Briand Oct. 16, 2025, 7:50 a.m. UTC
This was discussed on my previous series, introducing a new error on SSH
connection failure during tests: setup and tear down functions should
only do simple operations and not try to interact with the target.

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
---
Changes in v2:
- Use addCleanup() method to remove files. I clearly prefer this version
  for the logrotate tests. I'm not so sure about the weston tests, as
  some file is expected to be kept across tests in some situation and so
  lead to some strange logic in my changes.
- Link to v1: https://lore.kernel.org/r/20251013-mathieu-test-clean-setup-v1-0-6cea9936d79b@bootlin.com

---
Mathieu Dubois-Briand (2):
      oeqa: runtime: logrotate: Remove setup and tear down methods
      oeqa: runtime: weston: Remove tear down method

 meta/lib/oeqa/runtime/cases/logrotate.py | 19 ++++++++-----------
 meta/lib/oeqa/runtime/cases/weston.py    |  9 +++++----
 2 files changed, 13 insertions(+), 15 deletions(-)
---
base-commit: d098b35cfc3098448bd81245f9593fcd728e4b20
change-id: 20251013-mathieu-test-clean-setup-6eec6fcc734d

Best regards,