]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa: runtime: logrotate: Remove setup and tear down methods
authorMathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Thu, 9 Oct 2025 13:15:57 +0000 (15:15 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 27 Oct 2025 16:58:15 +0000 (16:58 +0000)
commitc90f79ae221573b2d5100f2d25b12f77e33113d7
tree9334aa0352a7b82fcebf187a5b26a31e7b81b88f
parent09a37ecf0aeff674e49d7bddd5421011a885da2e
oeqa: runtime: logrotate: Remove setup and tear down methods

Setup and tear down methods are executed even when the tests are disabled.
This lead to SSH being used to run commands on the target, and as it
might fail when no SSH server is present, we had to use
ignore_ssh_fails=True here.

Instead, run cleanup tasks in tests themselves and remove the tear down
method.

Also, the wtmp configuration file is not modified since the test was
modified a few years ago: there is no need to backup and restore it.

Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
meta/lib/oeqa/runtime/cases/logrotate.py