mirror of
git://git.yoctoproject.org/poky
synced 2026-10-01 05:09:42 +00:00
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>
This commit is contained in:
parent
0079607387
commit
da577c7d37
@ -283,6 +283,13 @@ class TestConcatOverride(unittest.TestCase):
|
|||||||
self.d.setVar("TEST_remove", "val")
|
self.d.setVar("TEST_remove", "val")
|
||||||
self.assertEqual(self.d.getVar("TEST"), "bar")
|
self.assertEqual(self.d.getVar("TEST"), "bar")
|
||||||
|
|
||||||
|
# Ensure the value is unchanged if we have an inactive remove override
|
||||||
|
# (including that whitespace is preserved)
|
||||||
|
def test_remove_inactive_override(self):
|
||||||
|
self.d.setVar("TEST", "${VAL} ${BAR} 123")
|
||||||
|
self.d.setVar("TEST_remove_inactiveoverride", "val")
|
||||||
|
self.assertEqual(self.d.getVar("TEST"), "val bar 123")
|
||||||
|
|
||||||
def test_doubleref_remove(self):
|
def test_doubleref_remove(self):
|
||||||
self.d.setVar("TEST", "${VAL} ${BAR}")
|
self.d.setVar("TEST", "${VAL} ${BAR}")
|
||||||
self.d.setVar("TEST_remove", "val")
|
self.d.setVar("TEST_remove", "val")
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user