yamllint: fix all yamllint truthy errors

Fix all thruthy errors detected by yamllint:

yamllint -f parsable -c .yamllint $( find -regex '.*\.y[a]*ml' ) | \
  grep '(truthy)'

This only accepts true/false for boolean properties. Seems like python
takes all sort of formats:

https://github.com/yaml/pyyaml/blob/master/lib/yaml/constructor.py#L224-L235

But the current specs only mention "true" or "false"

https://yaml.org/spec/1.2.2/#10212-boolean

Which is the standard yamllint config.

Excluding codeconv and workflow files, as some are using yes/no instead
in the respective documentation.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
This commit is contained in:
Fabio Baltieri 2023-01-03 11:23:56 +00:00 committed by Stephanos Ioannidis
parent abe50cc929
commit 5c32300861
28 changed files with 37 additions and 37 deletions

View file

@ -61,7 +61,7 @@ jobs:
- name: upload-results
uses: actions/upload-artifact@v3
continue-on-error: True
continue-on-error: true
with:
name: compliance.xml
path: compliance.xml

View file

@ -36,7 +36,7 @@ jobs:
- name: upload-stats
uses: actions/upload-artifact@v3
continue-on-error: True
continue-on-error: true
with:
name: ${{ env.OUTPUT_FILE_NAME }}
path: ${{ env.OUTPUT_FILE_NAME }}

View file

@ -27,7 +27,7 @@ jobs:
- name: upload-results
uses: actions/upload-artifact@v3
continue-on-error: True
continue-on-error: true
with:
name: zephyr-${{ steps.get_version.outputs.VERSION }}.spdx
path: zephyr-${{ steps.get_version.outputs.VERSION }}.spdx

View file

@ -3,7 +3,7 @@ sample:
name: with mcuboot
tests:
sample.application_development.sysbuild.with_mcuboot:
sysbuild: True
sysbuild: true
# Platform allowed is used as twister using sysbuild still lacks proper
# filtering support, see discussion in #49552.
platform_allow: reel_board nrf52840dk_nrf52840

View file

@ -9,7 +9,7 @@ common:
harness: console
harness_config:
type: multi_line
ordered: yes
ordered: true
regex:
- "Calculate first [0-9]+ digits of Pi independently by [0-9]+ threads.(.*)"
- "Pi value calculated by thread #[0-9]+: [0-9]+(.*)"

View file

@ -7,7 +7,7 @@ common:
harness: console
harness_config:
type: multi_line
ordered: yes
ordered: true
regex:
- "RESULT: OK(.*)"

View file

@ -7,7 +7,7 @@ tests:
harness: console
harness_config:
type: multi_line
ordered: False
ordered: false
regex:
- "Wake from Light Sleep"
- "Wake from Deep Sleep"

View file

@ -9,7 +9,7 @@ tests:
- lpcxpresso54114_m4
tags: ipm
harness: console
sysbuild: True
sysbuild: true
harness_config:
type: multi_line
regex:

View file

@ -11,7 +11,7 @@ tests:
- CONFIG_NET_SOCKETS_CAN_RECEIVERS=1
harness_config:
type: multi_line
ordered: True
ordered: true
regex:
- "(.*)\\[0\\] CAN frame: IDE 0x0 RTR 0x0 ID 0x1 DLC 0x8"
- "(.*)f0 f1 f2 f3 f4 f5 f6 f7"
@ -20,7 +20,7 @@ tests:
- CONFIG_NET_SOCKETS_CAN_RECEIVERS=2
harness_config:
type: multi_line
ordered: True
ordered: true
regex:
- "(.*)\\[0\\] CAN frame: IDE 0x0 RTR 0x0 ID 0x1 DLC 0x8"
- "(.*)f0 f1 f2 f3 f4 f5 f6 f7"

View file

@ -9,7 +9,7 @@ common:
depends_on: i2c hts221
harness_config:
type: multi_line
ordered: yes
ordered: true
regex:
- "Observation:(.*)"
- "Temperature:(.*) C"

View file

@ -7,7 +7,7 @@ tests:
depends_on: i2c lps22hb
harness_config:
type: multi_line
ordered: yes
ordered: true
regex:
- "Temperature: (.*)"
- "Relative Humidity: (.*)"

View file

@ -8,7 +8,7 @@ tests:
filter: dt_compat_enabled("st,lps22hh")
harness_config:
type: multi_line
ordered: yes
ordered: true
regex:
- "Temperature: (.*)"
- "Pressure: (.*)"

View file

@ -9,7 +9,7 @@ tests:
build_only: true
harness_config:
type: multi_line
ordered: yes
ordered: true
regex:
- "Temperature: (.*)"
- "Pressure: (.*)"

View file

@ -9,7 +9,7 @@ tests:
- mps2_an521
tags: ipm
harness: console
sysbuild: True
sysbuild: true
harness_config:
type: multi_line
regex:

View file

@ -2,7 +2,7 @@ sample:
name: USB DFU sample
common:
build_only: True
build_only: true
platform_exclude: native_posix native_posix_64 mimxrt1010_evk
mimxrt1050_evk_qspi mimxrt1020_evk mimxrt1015_evk mimxrt1060_evk sam4l_ek
mimxrt1050_evk mimxrt1060_evk_hyperflash nucleo_f207zg teensy40 teensy41

View file

@ -11,7 +11,7 @@ tests:
harness: console
harness_config:
type: multi_line
ordered: True
ordered: true
regex:
- "No file system selected"
- "The device is put in USB mass storage mode."
@ -26,7 +26,7 @@ tests:
harness: console
harness_config:
type: multi_line
ordered: True
ordered: true
regex:
- "End of files"
- "The device is put in USB mass storage mode."
@ -46,7 +46,7 @@ tests:
harness: console
harness_config:
type: multi_line
ordered: True
ordered: true
regex:
- "End of files"
- "The device is put in USB mass storage mode."
@ -63,7 +63,7 @@ tests:
harness_config:
fixture: fixture_sdcard
type: multi_line
ordered: True
ordered: true
regex:
- "End of files"
- "The device is put in USB mass storage mode."
@ -83,7 +83,7 @@ tests:
harness: console
harness_config:
type: multi_line
ordered: True
ordered: true
regex:
- "End of files"
- "The device is put in USB mass storage mode."

View file

@ -1,7 +1,7 @@
type: seq
sequence:
- type: map
required: no
required: false
mapping:
"available":
type: bool
@ -52,6 +52,6 @@ sequence:
required: false
"fixtures":
type: seq
required: no
required: false
sequence:
- type: str

View file

@ -11,7 +11,7 @@ type: seq
matching: all
sequence:
- type: map
required: yes
required: true
matching: all
mapping:
"scenarios":
@ -19,13 +19,13 @@ sequence:
required: true
sequence:
- type: str
- unique: True
- unique: true
"platforms":
required: true
type: seq
sequence:
- type: str
- unique: True
- unique: true
"comment":
type: str
required: false

View file

@ -1,7 +1,7 @@
tests:
test_a.check_1:
tags: test_a
build_only: True
build_only: true
test_a.check_2:
extra_args: CONF_FILE="test.conf"
tags: test_a

View file

@ -1,4 +1,4 @@
tests:
test_d.check_1:
tags: test_d
build_only: True
build_only: true

View file

@ -1,6 +1,6 @@
tests:
arch.x86.interrupt:
ignore_faults: True
ignore_faults: true
arch_allow: x86
filter: not CONFIG_X86_64
tags: interrupt idt

View file

@ -1,5 +1,5 @@
common:
sysbuild: True
sysbuild: true
harness: console
harness_config:
type: multi_line

View file

@ -3,8 +3,8 @@
common:
tags: coredump
ignore_faults: True
ignore_qemu_crash: True
ignore_faults: true
ignore_qemu_crash: true
tests:
drivers.coredump.api.qemu_riscv32:
filter: CONFIG_ARCH_SUPPORTS_COREDUMP

View file

@ -1,4 +1,4 @@
tests:
kernel.condvar:
ignore_faults: True
ignore_faults: true
tags: kernel userspace condition_variables

View file

@ -2,4 +2,4 @@ tests:
kernel.events.usage:
filter: CONFIG_ARCH_HAS_USERSPACE
tags: kernel userspace
ignore_faults: True
ignore_faults: true

View file

@ -1,5 +1,5 @@
common:
ignore_faults: True
ignore_faults: true
tests:
kernel.common.stack_protection:
extra_args: CONF_FILE=prj.conf

View file

@ -5,7 +5,7 @@ common:
- qemu_cortex_m3
- nsim_em
tags: kernel scheduler
ignore_faults: True
ignore_faults: true
tests:
kernel.no-mt.cpu_exception:
extra_args: EXTRA_CPPFLAGS=-DVIA_TWISTER=0

View file

@ -1,5 +1,5 @@
common:
ignore_faults: True
ignore_faults: true
tests:
kernel.demand_paging:
tags: kernel mmu demand_paging