mbox series

[v2,0/2] bitbake: fix ??= operator for variable flags and test

Message ID 20250213-varflags-v2-0-884794e84e55@syslinbit.com
Headers show
Series bitbake: fix ??= operator for variable flags and test | expand

Message

Louis Rannou Feb. 13, 2025, 3:05 p.m. UTC
Since commit 0329a7e3ac694737f2d2c1861f65492551360663, weak default values are
omitted in getVarFlags while they were only incorrect before. They were also not
removed by delVarFlag.

The first patch fixes the issue, the second adds some tests around getVarFlags,
delVarFlag en delVar.

Note that delVar blows all flags. Please check that is expected.

Fixes [YOCTO #15685]

Signed-off-by: Louis Rannou <louis.rannou@syslinbit.com>
---
Changes in v2:
- update first patch for a prettier solution
- change the place for tests to data.py as it is not testing parsing
- add tests for internalflags, delVarFlags and delVar
- Link to v1: https://lore.kernel.org/r/20250212-varflags-v1-0-3a756c7aa95c@syslinbit.com

---
Louis Rannou (2):
      bitbake: data_smart: fix ??= operator for variable flags
      bitbake: tests/data: add tests for variable flags

 lib/bb/data_smart.py | 15 +++++++++++----
 lib/bb/tests/data.py | 49 ++++++++++++++++++++++++++++++++++++++++++++++++-
 2 files changed, 59 insertions(+), 5 deletions(-)
---
base-commit: bcf090ed631bbd523a5341baebba0765f1a847f8
change-id: 20250212-varflags-7e56f73a3966

Best regards,