summaryrefslogtreecommitdiffstats
path: root/meta/lib
diff options
context:
space:
mode:
authorMilan Shah <mshah@mvista.com>2021-01-04 11:24:02 +0530
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-01-05 13:48:41 +0000
commitbdae907d77e0b9ee2f94995e41537c13cf909196 (patch)
treeda4b703fb33ae10a60a92317bef490c88d414c7b /meta/lib
parent6806cd99158c32bd717a861ba05a24c153873ffb (diff)
downloadpoky-bdae907d77e0b9ee2f94995e41537c13cf909196.tar.gz
oe-pkgdata-util: Added a test to verify oe-pkgdata-util without parameters
A test is implemented on poky/meta/lib/oeqa/selftest/pkgdata.py to test the scenario when oe-pkgdata-util is executed without parameters and help is displayed. See [YOCTO #10726] for detailed bug information. (From OE-Core rev: 6b4e2eafa6eb71ca94ccc8a18d05b473b352367c) Signed-off-by: Milan Shah <mshah@mvista.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib')
-rw-r--r--meta/lib/oeqa/selftest/cases/pkgdata.py6
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)