diff options
-rw-r--r-- | meta/lib/oeqa/selftest/cases/pkgdata.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/meta/lib/oeqa/selftest/cases/pkgdata.py b/meta/lib/oeqa/selftest/cases/pkgdata.py index 833a1803ba..254abc40c6 100644 --- a/meta/lib/oeqa/selftest/cases/pkgdata.py +++ b/meta/lib/oeqa/selftest/cases/pkgdata.py | |||
@@ -218,3 +218,9 @@ class OePkgdataUtilTests(OESelftestTestCase): | |||
218 | def test_specify_pkgdatadir(self): | 218 | def test_specify_pkgdatadir(self): |
219 | result = runCmd('oe-pkgdata-util -p %s lookup-pkg zlib' % get_bb_var('PKGDATA_DIR')) | 219 | result = runCmd('oe-pkgdata-util -p %s lookup-pkg zlib' % get_bb_var('PKGDATA_DIR')) |
220 | self.assertEqual(result.output, 'libz1') | 220 | self.assertEqual(result.output, 'libz1') |
221 | |||
222 | def test_no_param(self): | ||
223 | result = runCmd('oe-pkgdata-util', ignore_status=True) | ||
224 | self.assertEqual(result.status, 2, "Status different than 2. output: %s" % result.output) | ||
225 | currpos = result.output.find('usage: oe-pkgdata-util') | ||
226 | self.assertTrue(currpos != -1, msg = "Test is Failed. Help is not Displayed in %s" % result.output) | ||