[oe-commits] [bitbake] branch master-next updated: tests/data: Add inactive remove override test

git at git.openembedded.org git at git.openembedded.org
Thu Mar 16 14:22:15 UTC 2017


This is an automated email from the git hooks/post-receive script.

rpurdie pushed a commit to branch master-next
in repository bitbake.

The following commit(s) were added to refs/heads/master-next by this push:
     new 1ff9b3c  tests/data: Add inactive remove override test
1ff9b3c is described below

commit 1ff9b3c669fa187f152de7b8b57d14c2468d926c
Author: Richard Purdie <richard.purdie at linuxfoundation.org>
AuthorDate: Thu Mar 16 12:53:15 2017 +0000

    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.
    
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/tests/data.py | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/lib/bb/tests/data.py b/lib/bb/tests/data.py
index be46ffc..895489e 100644
--- a/lib/bb/tests/data.py
+++ b/lib/bb/tests/data.py
@@ -283,6 +283,13 @@ class TestConcatOverride(unittest.TestCase):
         self.d.setVar("TEST_remove", "val")
         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):
         self.d.setVar("TEST", "${VAL} ${BAR}")
         self.d.setVar("TEST_remove", "val")

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list