Fixed failure of test_unsupported_subcommand caused by switching to argparser by checking that parser returns non-zero return code.
[YOCTO #9636] Signed-off-by: Ed Bartosh <[email protected]> --- meta/lib/oeqa/selftest/wic.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 726af19..cdec80c 100644 --- a/meta/lib/oeqa/selftest/wic.py +++ b/meta/lib/oeqa/selftest/wic.py @@ -159,8 +159,7 @@ class Wic(oeSelfTest): @testcase(1213) def test_unsupported_subcommand(self): """Test unsupported subcommand""" - self.assertEqual(1, runCmd('wic unsupported', - ignore_status=True).status) + self.assertNotEqual(0, runCmd('wic unsupported', ignore_status=True).status) @testcase(1214) def test_no_command(self): -- 2.1.4 -- _______________________________________________ Openembedded-core mailing list [email protected] http://lists.openembedded.org/mailman/listinfo/openembedded-core
