summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/tests/data.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/tests/data.py')
-rw-r--r--bitbake/lib/bb/tests/data.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/data.py b/bitbake/lib/bb/tests/data.py
index 944a906653..9b09ff4c61 100644
--- a/bitbake/lib/bb/tests/data.py
+++ b/bitbake/lib/bb/tests/data.py
@@ -259,6 +259,13 @@ class TestConcatOverride(unittest.TestCase):
259 bb.data.update_data(self.d) 259 bb.data.update_data(self.d)
260 self.assertEqual(self.d.getVar("TEST", True), "") 260 self.assertEqual(self.d.getVar("TEST", True), "")
261 261
262 def test_remove_expansion(self):
263 self.d.setVar("BAR", "Z")
264 self.d.setVar("TEST", "${BAR}/X Y")
265 self.d.setVar("TEST_remove", "${BAR}/X")
266 bb.data.update_data(self.d)
267 self.assertEqual(self.d.getVar("TEST", True), "Y")
268
262class TestOverrides(unittest.TestCase): 269class TestOverrides(unittest.TestCase):
263 def setUp(self): 270 def setUp(self):
264 self.d = bb.data.init() 271 self.d = bb.data.init()