Thanks, Paul for the review. All review comments are fixed and the patch is sent again for the review. ----------------------- Thanks & Regards, *Milan Shah* MontaVista Software, Bangalore, India On Tue, Dec 22, 2020 at 7:14 PM Paul Barker wrote: > On Tue, 22 Dec 2020 at 11:25, Milan Shah wrote: > > > > 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. > > > > Upstream-Status: Submitted > > This tag doesn't make sense here, you can just drop it. We only need > this tag for actual patch files added to the repository to be applied > to upstream software. > > > > > Signed-off-by: Milan Shah > > --- > > meta/lib/oeqa/selftest/cases/pkgdata.py | 6 ++++++ > > 1 file changed, 6 insertions(+) > > > > diff --git a/meta/lib/oeqa/selftest/cases/pkgdata.py > b/meta/lib/oeqa/selftest/cases/pkgdata.py > > index 833a180..d3a5519 100644 > > --- a/meta/lib/oeqa/selftest/cases/pkgdata.py > > +++ b/meta/lib/oeqa/selftest/cases/pkgdata.py > > @@ -218,3 +218,9 @@ class OePkgdataUtilTests(OESelftestTestCase): > > def test_specify_pkgdatadir(self): > > result = runCmd('oe-pkgdata-util -p %s lookup-pkg zlib' % > get_bb_var('PKGDATA_DIR')) > > self.assertEqual(result.output, 'libz1') > > + > > + def test_no_param(self): > > + result = runCmd('oe-pkgdata-util', ignore_status=True) > > + self.assertEqual(result.status, 2, "Status different than 2. > output: %s" % result.output) > > + self.assertIn('oe-pkgdata-util: error: the following arguments > are required: ', result.output) > > + self.assertIn('usage: oe-pkgdata-util [-h] [-d] [-p > PKGDATA_DIR] ', result.output) > > I don't like these assertln calls - they just make it more difficult > to change the help output of the oe-pkgdata-util tool if additional > options are added in the future. > > I'm not really sure what this test case is expected to catch but > perhaps just checking for the return code of 2 and the string "usage: > oe-pkgdata-util" somewhere in the output is enough. > > Thanks, > > -- > Paul Barker > Konsulko Group >