mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
oe-pkgdata-util: Make read-value handle override variables
Some variables in pkgdata files have a package-name override. When the bare variable can not be found, try with the override-variant. PKGSIZE is one such variable, and already had special code to handle this. Test included. (From OE-Core rev: 6df99cda894033cba68bc6ab91e47f67e0d788a5) Signed-off-by: Ola x Nilsson <ola.x.nilsson@axis.com> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
c61b525e91
commit
d65886bb69
@@ -41,6 +41,8 @@ class OePkgdataUtilTests(oeSelfTest):
|
||||
def test_read_value(self):
|
||||
result = runCmd('oe-pkgdata-util read-value PN libz1')
|
||||
self.assertEqual(result.output, 'zlib')
|
||||
result = runCmd('oe-pkgdata-util read-value PKG libz1')
|
||||
self.assertEqual(result.output, 'libz1')
|
||||
result = runCmd('oe-pkgdata-util read-value PKGSIZE bash')
|
||||
pkgsize = int(result.output.strip())
|
||||
self.assertGreater(pkgsize, 1, "Size should be greater than 1. %s" % result.output)
|
||||
|
||||
Reference in New Issue
Block a user