Browse Source

scripts: ci: check_compliance: allow CONFIG_BOARD_UNIT_TESTING

Previously, code like the snippet below would not pass compliance checks.
With this change, we add `CONFIG_BOARD_UNIT_TESTING` to the Kconfig allow
list, so that code like the snippet below is not incorrectly reported as
a compliance failure.

```
if defined(CONFIG_BOARD_UNIT_TESTING)
/* unit-testing only */
endif
```

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
pull/91872/head
Chris Friedt 4 weeks ago committed by Benjamin Cabé
parent
commit
e363fdd16b
  1. 1
      scripts/ci/check_compliance.py

1
scripts/ci/check_compliance.py

@ -1143,6 +1143,7 @@ flagged. @@ -1143,6 +1143,7 @@ flagged.
"BOARD_MPS2_AN521_CPUTEST", # Used for board and SoC extension feature tests
"BOARD_NATIVE_SIM_NATIVE_64_TWO", # Used for board and SoC extension feature tests
"BOARD_NATIVE_SIM_NATIVE_ONE", # Used for board and SoC extension feature tests
"BOARD_UNIT_TESTING", # Used for tests/unit
"BOOT_DIRECT_XIP", # Used in sysbuild for MCUboot configuration
"BOOT_DIRECT_XIP_REVERT", # Used in sysbuild for MCUboot configuration
"BOOT_ENCRYPTION_KEY_FILE", # Used in sysbuild

Loading…
Cancel
Save