poky/bitbake/lib/bb/tests
Nikolai Merinov b65452bda3 bitbake: parse: Forbid ambiguous assignments to ${.}, ${+}, and ${:} variables
Old code that parse variable names in assignment commands behave differently for
variables that ends with special symbol for single-character variable names and
multi-character variable names. For example:

  A+="1"   # Change variable ${A}, '+' glued to '='
  A+ = "1" # Change variable ${A+}

  +="1"    # Change variable ${+}, the '+' symbol not part of assignment operator
  + = "1"  # Change variable ${+}

New code would always assume that '.=', '+=', and ':=' is assignment operator.
As result code like the following would raise parsing error

  +="value"

While code with extra spaces would work as before

  + = "value" # Change variable ${+}

This change allow to catch issues in code that generate bitbake configuration
files in a manner like "echo ${VARNAME}+=${VALUE} >> conf/local.conf"

(Bitbake rev: 93059aad13a12cd69d86368795c88e5349197d5d)

Signed-off-by: Nikolai Merinov <n.merinov@inango-systems.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
2025-02-05 12:11:01 +00:00
..
fetch-testdata bitbake: fetch2/wget.py: correctly match versioned directories 2022-12-11 16:33:19 +00:00
runqueue-tests bitbake: cooker/cache: Drop mc 'default' string value 2025-01-25 11:30:51 +00:00
support bitbake: tests/fetch: Allow wget upgrade tests to run against a local server 2020-01-22 15:56:39 +00:00
__init__.py
codeparser.py bitbake: tests.codeparser: add tests for shell expansions 2024-05-21 14:14:41 +01:00
color.py bitbake: event: builtins fix for 'd' deletion 2022-12-29 00:07:06 +00:00
compression.py bitbake: bb/compress: use lz4 instead of lz4c 2024-11-05 11:17:17 +00:00
cooker.py bitbake: bitbake: Add copyright headers where missing 2022-08-12 11:49:29 +01:00
cow.py bitbake: COW: migrate test suite into tests/cow 2020-09-02 16:01:05 +01:00
data.py bitbake: bitbake: tests: Fix duplicate test_underscore_override test 2023-12-02 18:04:23 +00:00
event.py bitbake: bitbake: tests/event: Add test_lineno_in_eventhandler 2024-01-10 13:55:33 +00:00
fetch.py bitbake: tests/fetch: Fix git shallow test failure with git >= 2.48 2025-01-23 00:03:06 +00:00
parse.py bitbake: parse: Forbid ambiguous assignments to ${.}, ${+}, and ${:} variables 2025-02-05 12:11:01 +00:00
runqueue.py bitbake: siggen: Drop non-multiconfig aware siggen support 2022-12-11 23:21:27 +00:00
siggen.py bitbake: siggen: Improve runtaskdeps data to fix sstate debugging 2023-08-09 13:23:33 +01:00
utils.py bitbake: tests: utils: add test for Go mod h1 checksum 2025-01-11 18:35:01 +00:00