diff options
author | Ross Burton <ross.burton@intel.com> | 2015-02-02 15:09:24 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-15 15:56:06 +0100 |
commit | 0143d3a6a9dc263f90b7e19a3f8d6b9a49831361 (patch) | |
tree | 4cada9a027433acbabf0ab5c4f8b45bd56d723dd /bitbake/lib | |
parent | fecee8ffdc653a9e909250bce37c42794b101d6b (diff) | |
download | poky-0143d3a6a9dc263f90b7e19a3f8d6b9a49831361.tar.gz |
bitbake: 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)
(Bitbake rev: ed950f95fc80f069e800e9c6e785641f307e6512)
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Signed-off-by: Armin Kuster <akuster808@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/tests/data.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/data.py b/bitbake/lib/bb/tests/data.py index 9b09ff4c61..23a5e5fd9c 100644 --- a/bitbake/lib/bb/tests/data.py +++ b/bitbake/lib/bb/tests/data.py | |||
@@ -266,6 +266,13 @@ class TestConcatOverride(unittest.TestCase): | |||
266 | bb.data.update_data(self.d) | 266 | bb.data.update_data(self.d) |
267 | self.assertEqual(self.d.getVar("TEST", True), "Y") | 267 | self.assertEqual(self.d.getVar("TEST", True), "Y") |
268 | 268 | ||
269 | def test_remove_expansion_items(self): | ||
270 | self.d.setVar("TEST", "A B C D") | ||
271 | self.d.setVar("BAR", "B D") | ||
272 | self.d.setVar("TEST_remove", "${BAR}") | ||
273 | bb.data.update_data(self.d) | ||
274 | self.assertEqual(self.d.getVar("TEST", True), "A C") | ||
275 | |||
269 | class TestOverrides(unittest.TestCase): | 276 | class TestOverrides(unittest.TestCase): |
270 | def setUp(self): | 277 | def setUp(self): |
271 | self.d = bb.data.init() | 278 | self.d = bb.data.init() |