summaryrefslogtreecommitdiffstats
path: root/meta/lib/oeqa/selftest/wic.py
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2017-05-02 17:19:05 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-05-21 12:32:01 +0100
commit581db38a280bf4cb03faf568cefd8d97383b5417 (patch)
tree336ed694e9a7d986466650203f76ebd4bac53490 /meta/lib/oeqa/selftest/wic.py
parentda937e0e2478152968d5fd5eec7dd8cc2b922afb (diff)
downloadopenembedded-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.py3
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):