summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-16 12:53:15 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2017-03-16 22:12:07 +0000
commitda577c7d37a0e35f948370da333306aea2cef5cc (patch)
tree19a2919aa2af0a7da74e70ae095209a8ce0107f5 /bitbake
parent007960738792890fece6cfb0a75f27e7184cadf2 (diff)
downloadpoky-da577c7d37a0e35f948370da333306aea2cef5cc.tar.gz
bitbake: tests/data: Add inactive remove override test
In 2bc4d35fb32defc59cd6ed1fc87e35924c201a5c we fixed cases where an inactive remove override was influecing the value of a variable. This adds a test case for this issue. (Bitbake rev: 1ff9b3c669fa187f152de7b8b57d14c2468d926c) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-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 be46ffc31b..895489e02a 100644
--- a/bitbake/lib/bb/tests/data.py
+++ b/bitbake/lib/bb/tests/data.py
@@ -283,6 +283,13 @@ class TestConcatOverride(unittest.TestCase):
283 self.d.setVar("TEST_remove", "val") 283 self.d.setVar("TEST_remove", "val")
284 self.assertEqual(self.d.getVar("TEST"), "bar") 284 self.assertEqual(self.d.getVar("TEST"), "bar")
285 285
286 # Ensure the value is unchanged if we have an inactive remove override
287 # (including that whitespace is preserved)
288 def test_remove_inactive_override(self):
289 self.d.setVar("TEST", "${VAL} ${BAR} 123")
290 self.d.setVar("TEST_remove_inactiveoverride", "val")
291 self.assertEqual(self.d.getVar("TEST"), "val bar 123")
292
286 def test_doubleref_remove(self): 293 def test_doubleref_remove(self):
287 self.d.setVar("TEST", "${VAL} ${BAR}") 294 self.d.setVar("TEST", "${VAL} ${BAR}")
288 self.d.setVar("TEST_remove", "val") 295 self.d.setVar("TEST_remove", "val")