]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
oeqa/selftest/wic: Improve assertTrue calls
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 18 Sep 2023 12:38:36 +0000 (13:38 +0100)
committerSteve Sakoman <steve@sakoman.com>
Fri, 13 Oct 2023 02:23:08 +0000 (16:23 -1000)
commit52a2455ba7d91d404fc2c4568c805cf1fbe2b2ad
treeddfee7f88cec8046af82da1bba4c0e62615e156a
parentd52003dd13cb17e32ccfa717f8462c8301334dd1
oeqa/selftest/wic: Improve assertTrue calls

assertTrue is a problematic call use in test cases since when it fails,
you just get an unhelpful "False is not True" message.

Replace some uses with assertIn/assertNotIn which will give more helpful results
and for the rest, add msg entries which given more helpful debugging.

For example, this patch would help debugging of #15176.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 35d4c39e0df1a304f557471151a03d1e4b0f30c7)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/lib/oeqa/selftest/cases/wic.py