From: Richard Purdie Date: Mon, 8 Aug 2022 10:29:36 +0000 (+0100) Subject: selftest/wic: Tweak test case to not depend on kernel size X-Git-Tag: lucaceresoli/bug-15201-perf-libtraceevent-missing~3384 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bd60c44bef4a1b5d3c8fe77a9e6d3a8f43b0dea4;p=thirdparty%2Fopenembedded%2Fopenembedded-core-contrib.git selftest/wic: Tweak test case to not depend on kernel size The current test assumes the kernel size leaves a certain amount of whitespace in the output. Improve this constraint so a slightly larger kernel doesn't fail the test. Signed-off-by: Richard Purdie --- diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py index 53058df226b..0d664d7c395 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py +++ b/meta/lib/oeqa/selftest/cases/wic.py @@ -1420,7 +1420,7 @@ class ModifyTests(WicTestCase): # list directory content of the first partition result = runCmd("wic ls %s:1 -n %s" % (images[0], sysroot)) - self.assertIn('\n%s ' % kerneltype.upper(), result.output) + self.assertIn('\n%s ' % kerneltype.upper(), result.output) self.assertIn('\nEFI ', result.output) # remove file. EFI partitions are case-insensitive so exercise that too