[oe-commits] [openembedded-core] 03/47: selftest: fix test_unsupported_subcommand test case
git at git.openembedded.org
git at git.openembedded.org
Sun May 21 14:03:52 UTC 2017
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository openembedded-core.
commit 581db38a280bf4cb03faf568cefd8d97383b5417
Author: Ed Bartosh <ed.bartosh at linux.intel.com>
AuthorDate: Tue May 2 17:19:05 2017 +0300
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 at linux.intel.com>
Signed-off-by: Ross Burton <ross.burton at intel.com>
---
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):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list