diff options
author | Jacob Kroon <jacob.kroon@gmail.com> | 2019-09-20 11:10:51 +0200 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-09-27 13:02:19 +0100 |
commit | daa6dcfc397ca360a3fdfef6bf1f642e6b545ae5 (patch) | |
tree | b60600854da43a9f4698d152918ecb4217dbc207 /bitbake/lib | |
parent | a44d11945658395204c84e7cd0641ddfd57d23c3 (diff) | |
download | poky-daa6dcfc397ca360a3fdfef6bf1f642e6b545ae5.tar.gz |
bitbake: tests/data: Test combinations of _append together with override
(Bitbake rev: f31f35e8527c60a95931a4a8311a4cd237770b42)
Signed-off-by: Jacob Kroon <jacob.kroon@gmail.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib')
-rw-r--r-- | bitbake/lib/bb/tests/data.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/data.py b/bitbake/lib/bb/tests/data.py index a9b0bdb099..3e49984c93 100644 --- a/bitbake/lib/bb/tests/data.py +++ b/bitbake/lib/bb/tests/data.py | |||
@@ -381,6 +381,19 @@ class TestOverrides(unittest.TestCase): | |||
381 | self.d.setVar("OVERRIDES", "foo:bar:some_val") | 381 | self.d.setVar("OVERRIDES", "foo:bar:some_val") |
382 | self.assertEqual(self.d.getVar("TEST"), " testvalue5") | 382 | self.assertEqual(self.d.getVar("TEST"), " testvalue5") |
383 | 383 | ||
384 | def test_append_and_override_1(self): | ||
385 | self.d.setVar("TEST_append", "testvalue2") | ||
386 | self.d.setVar("TEST_bar", "testvalue3") | ||
387 | self.assertEqual(self.d.getVar("TEST"), "testvalue3testvalue2") | ||
388 | |||
389 | def test_append_and_override_2(self): | ||
390 | self.d.setVar("TEST_append_bar", "testvalue2") | ||
391 | self.assertEqual(self.d.getVar("TEST"), "testvaluetestvalue2") | ||
392 | |||
393 | def test_append_and_override_3(self): | ||
394 | self.d.setVar("TEST_bar_append", "testvalue2") | ||
395 | self.assertEqual(self.d.getVar("TEST"), "testvalue2") | ||
396 | |||
384 | # Test an override with _<numeric> in it based on a real world OE issue | 397 | # Test an override with _<numeric> in it based on a real world OE issue |
385 | def test_underscore_override(self): | 398 | def test_underscore_override(self): |
386 | self.d.setVar("TARGET_ARCH", "x86_64") | 399 | self.d.setVar("TARGET_ARCH", "x86_64") |