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-23 17:45:35 +0100 |
commit | c523b2ba27472479fd7a0f17957ca3e08d7021f3 (patch) | |
tree | b1ff3a7650a3c68c6abfcb09f1d68efbdb88f5fa | |
parent | db26c8447443c3ffd32d511774a658eb0ebc547e (diff) | |
download | poky-c523b2ba27472479fd7a0f17957ca3e08d7021f3.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]
(From OE-Core rev: 581db38a280bf4cb03faf568cefd8d97383b5417)
Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-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): | |||
159 | @testcase(1213) | 159 | @testcase(1213) |
160 | def test_unsupported_subcommand(self): | 160 | def test_unsupported_subcommand(self): |
161 | """Test unsupported subcommand""" | 161 | """Test unsupported subcommand""" |
162 | self.assertEqual(1, runCmd('wic unsupported', | 162 | self.assertNotEqual(0, runCmd('wic unsupported', ignore_status=True).status) |
163 | ignore_status=True).status) | ||
164 | 163 | ||
165 | @testcase(1214) | 164 | @testcase(1214) |
166 | def test_no_command(self): | 165 | def test_no_command(self): |