[bitbake-devel] [PATCH] tests/data: Test combinations of _append together with override
Jacob Kroon
jacob.kroon at gmail.com
Fri Sep 20 09:10:51 UTC 2019
Signed-off-by: Jacob Kroon <jacob.kroon at gmail.com>
---
lib/bb/tests/data.py | 13 +++++++++++++
1 file changed, 13 insertions(+)
diff --git a/lib/bb/tests/data.py b/lib/bb/tests/data.py
index a9b0bdb0..3e49984c 100644
--- a/lib/bb/tests/data.py
+++ b/lib/bb/tests/data.py
@@ -381,6 +381,19 @@ class TestOverrides(unittest.TestCase):
self.d.setVar("OVERRIDES", "foo:bar:some_val")
self.assertEqual(self.d.getVar("TEST"), " testvalue5")
+ def test_append_and_override_1(self):
+ self.d.setVar("TEST_append", "testvalue2")
+ self.d.setVar("TEST_bar", "testvalue3")
+ self.assertEqual(self.d.getVar("TEST"), "testvalue3testvalue2")
+
+ def test_append_and_override_2(self):
+ self.d.setVar("TEST_append_bar", "testvalue2")
+ self.assertEqual(self.d.getVar("TEST"), "testvaluetestvalue2")
+
+ def test_append_and_override_3(self):
+ self.d.setVar("TEST_bar_append", "testvalue2")
+ self.assertEqual(self.d.getVar("TEST"), "testvalue2")
+
# Test an override with _<numeric> in it based on a real world OE issue
def test_underscore_override(self):
self.d.setVar("TARGET_ARCH", "x86_64")
--
2.21.0
More information about the bitbake-devel
mailing list