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.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/data.py b/bitbake/lib/bb/tests/data.py
index 9ac78e3683..db3e2010a9 100644
--- a/bitbake/lib/bb/tests/data.py
+++ b/bitbake/lib/bb/tests/data.py
@@ -386,6 +386,15 @@ class TestOverrides(unittest.TestCase):
386 self.d.setVar("OVERRIDES", "foo:bar:some_val") 386 self.d.setVar("OVERRIDES", "foo:bar:some_val")
387 self.assertEqual(self.d.getVar("TEST"), "testvalue3") 387 self.assertEqual(self.d.getVar("TEST"), "testvalue3")
388 388
389 def test_remove_with_override(self):
390 self.d.setVar("TEST_bar", "testvalue2")
391 self.d.setVar("TEST_some_val", "testvalue3 testvalue5")
392 self.d.setVar("TEST_some_val_remove", "testvalue3")
393 self.d.setVar("TEST_foo", "testvalue4")
394 self.d.setVar("OVERRIDES", "foo:bar:some_val")
395 self.assertEqual(self.d.getVar("TEST"), " testvalue5")
396
397
389class TestKeyExpansion(unittest.TestCase): 398class TestKeyExpansion(unittest.TestCase):
390 def setUp(self): 399 def setUp(self):
391 self.d = bb.data.init() 400 self.d = bb.data.init()