mirror of
https://git.yoctoproject.org/poky
synced 2026-09-14 03:49:32 +02:00
bitbake: tests/data: add test for incorrect remove behaviour
The _remove operator isn't working correctly when used with a variable that expands to several items, so add a test case to exercise this path. (Bitbake rev: cb2a62a5fbffb358528a85b46c1fc6383286cb9d) 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
22c38e2d8a
commit
b00e781b4a
@@ -272,6 +272,13 @@ class TestConcatOverride(unittest.TestCase):
|
|||||||
bb.data.update_data(self.d)
|
bb.data.update_data(self.d)
|
||||||
self.assertEqual(self.d.getVar("TEST", True), "Y")
|
self.assertEqual(self.d.getVar("TEST", True), "Y")
|
||||||
|
|
||||||
|
def test_remove_expansion_items(self):
|
||||||
|
self.d.setVar("TEST", "A B C D")
|
||||||
|
self.d.setVar("BAR", "B D")
|
||||||
|
self.d.setVar("TEST_remove", "${BAR}")
|
||||||
|
bb.data.update_data(self.d)
|
||||||
|
self.assertEqual(self.d.getVar("TEST", True), "A C")
|
||||||
|
|
||||||
class TestOverrides(unittest.TestCase):
|
class TestOverrides(unittest.TestCase):
|
||||||
def setUp(self):
|
def setUp(self):
|
||||||
self.d = bb.data.init()
|
self.d = bb.data.init()
|
||||||
|
|||||||
Reference in New Issue
Block a user