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 <[email protected]> --- changes in v5: - rebase with master - split back out into smaller patches - now that the sector-size re-implementation is ahead of this patch, various wic sub commands (ls, rm, cp) no longer need a --vars file v4: skipped to align/combine with other patch set changes in v3: - squashed into 1 large patch changes in v2: - none --- 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 e9c28baf51eb..22163ccdb3e2 100644 --- a/meta/lib/oeqa/selftest/cases/wic.py +++ b/meta/lib/oeqa/selftest/cases/wic.py @@ -99,7 +99,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') @@ -139,18 +139,18 @@ class CLITests(OESelftestTestCase): def test_list_images(self): """Test wic list images""" - runCmd('wic list images') + runCmd('wic list images -v %s' % self.envfile) def test_list_source_plugins(self): """Test wic list source-plugins""" - runCmd('wic list source-plugins') + runCmd('wic list source-plugins -v %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 -v %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 -v %s %s help' % (self.envfile, image)) def test_unsupported_subcommand(self): """Test unsupported subcommand""" -- 2.51.0
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#231708): https://lists.openembedded.org/g/openembedded-core/message/231708 Mute This Topic: https://lists.openembedded.org/mt/117965973/21656 Group Owner: [email protected] Unsubscribe: https://lists.openembedded.org/g/openembedded-core/unsub [[email protected]] -=-=-=-=-=-=-=-=-=-=-=-
