diff options
author | Ed Bartosh <ed.bartosh@linux.intel.com> | 2017-05-02 17:19:05 +0300 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2017-05-21 12:32:01 +0100 |
commit | 581db38a280bf4cb03faf568cefd8d97383b5417 (patch) | |
tree | 336ed694e9a7d986466650203f76ebd4bac53490 /meta/lib/oeqa/selftest/wic.py | |
parent | da937e0e2478152968d5fd5eec7dd8cc2b922afb (diff) | |
download | openembedded-core-581db38a280bf4cb03faf568cefd8d97383b5417.tar.gz |
selftest: fix test_unsupported_subcommand test case
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 <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Diffstat (limited to 'meta/lib/oeqa/selftest/wic.py')
-rw-r--r-- | meta/lib/oeqa/selftest/wic.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/meta/lib/oeqa/selftest/wic.py b/meta/lib/oeqa/selftest/wic.py index 726af19e9d..cdec80c076 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): |