[RFC][PATCH 5/9] oe-selftest -r wic.CLITests -> PASS

Trevor Woerner
2026-02-02T13:54:38Z

Changes for the wic.CLITests oe-selftests to pass now that wic is a
stand-alone app and no longer part of oe-core.

Note that the base class for these tests had to change to WicTestCase so
that the wic-native tool would be built and available.

Signed-off-by: Trevor Woerner <twoerner@gmail.com>
---
meta/lib/oeqa/selftest/cases/wic.py | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/meta/lib/oeqa/selftest/cases/wic.py b/meta/lib/oeqa/selftest/cases/wic.py
index 8eb0d3dcc464..d8f89e79e7f2 100644
--- a/meta/lib/oeqa/selftest/cases/wic.py
+++ b/meta/lib/oeqa/selftest/cases/wic.py
@@ -101,7 +101,7 @@ class WicTestCase(OESelftestTestCase):
WicTestCase.wicenv_cache[image] = os.path.join(stdir, machine, 'imgdata')
return WicTestCase.wicenv_cache[image]

-class CLITests(OESelftestTestCase):
+class CLITests(WicTestCase):
def test_version(self):
"""Test wic --version"""
runCmd('wic --version')
@@ -141,18 +141,18 @@ class CLITests(OESelftestTestCase):

def test_list_images(self):
"""Test wic list images"""
- runCmd('wic list images')
+ runCmd('wic list images --vars %s' % self.envfile)

def test_list_source_plugins(self):
"""Test wic list source-plugins"""
- runCmd('wic list source-plugins')
+ runCmd('wic list source-plugins --vars %s' % self.envfile)

def test_listed_images_help(self):
"""Test wic listed images help"""
- output = runCmd('wic list images').output
+ output = runCmd('wic list images --vars %s' % self.envfile).output
imagelist = [line.split()[0] for line in output.splitlines()]
for image in imagelist:
- runCmd('wic list %s help' % image)
+ runCmd('wic list %s help --vars %s' % (image, self.envfile))

def test_unsupported_subcommand(self):
"""Test unsupported subcommand"""
--
2.51.0