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:
parent
abe50cc929
commit
5c32300861
2
.github/workflows/compliance.yml
vendored
2
.github/workflows/compliance.yml
vendored
|
@ -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
|
||||
|
|
2
.github/workflows/issue_count.yml
vendored
2
.github/workflows/issue_count.yml
vendored
|
@ -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 }}
|
||||
|
|
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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]+(.*)"
|
||||
|
|
|
@ -7,7 +7,7 @@ common:
|
|||
harness: console
|
||||
harness_config:
|
||||
type: multi_line
|
||||
ordered: yes
|
||||
ordered: true
|
||||
regex:
|
||||
- "RESULT: OK(.*)"
|
||||
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -9,7 +9,7 @@ tests:
|
|||
- lpcxpresso54114_m4
|
||||
tags: ipm
|
||||
harness: console
|
||||
sysbuild: True
|
||||
sysbuild: true
|
||||
harness_config:
|
||||
type: multi_line
|
||||
regex:
|
||||
|
|
|
@ -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"
|
||||
|
|
|
@ -9,7 +9,7 @@ common:
|
|||
depends_on: i2c hts221
|
||||
harness_config:
|
||||
type: multi_line
|
||||
ordered: yes
|
||||
ordered: true
|
||||
regex:
|
||||
- "Observation:(.*)"
|
||||
- "Temperature:(.*) C"
|
||||
|
|
|
@ -7,7 +7,7 @@ tests:
|
|||
depends_on: i2c lps22hb
|
||||
harness_config:
|
||||
type: multi_line
|
||||
ordered: yes
|
||||
ordered: true
|
||||
regex:
|
||||
- "Temperature: (.*)"
|
||||
- "Relative Humidity: (.*)"
|
||||
|
|
|
@ -8,7 +8,7 @@ tests:
|
|||
filter: dt_compat_enabled("st,lps22hh")
|
||||
harness_config:
|
||||
type: multi_line
|
||||
ordered: yes
|
||||
ordered: true
|
||||
regex:
|
||||
- "Temperature: (.*)"
|
||||
- "Pressure: (.*)"
|
||||
|
|
|
@ -9,7 +9,7 @@ tests:
|
|||
build_only: true
|
||||
harness_config:
|
||||
type: multi_line
|
||||
ordered: yes
|
||||
ordered: true
|
||||
regex:
|
||||
- "Temperature: (.*)"
|
||||
- "Pressure: (.*)"
|
||||
|
|
|
@ -9,7 +9,7 @@ tests:
|
|||
- mps2_an521
|
||||
tags: ipm
|
||||
harness: console
|
||||
sysbuild: True
|
||||
sysbuild: true
|
||||
harness_config:
|
||||
type: multi_line
|
||||
regex:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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."
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
tests:
|
||||
test_d.check_1:
|
||||
tags: test_d
|
||||
build_only: True
|
||||
build_only: true
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
common:
|
||||
sysbuild: True
|
||||
sysbuild: true
|
||||
harness: console
|
||||
harness_config:
|
||||
type: multi_line
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
tests:
|
||||
kernel.condvar:
|
||||
ignore_faults: True
|
||||
ignore_faults: true
|
||||
tags: kernel userspace condition_variables
|
||||
|
|
|
@ -2,4 +2,4 @@ tests:
|
|||
kernel.events.usage:
|
||||
filter: CONFIG_ARCH_HAS_USERSPACE
|
||||
tags: kernel userspace
|
||||
ignore_faults: True
|
||||
ignore_faults: true
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
common:
|
||||
ignore_faults: True
|
||||
ignore_faults: true
|
||||
tests:
|
||||
kernel.common.stack_protection:
|
||||
extra_args: CONF_FILE=prj.conf
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
common:
|
||||
ignore_faults: True
|
||||
ignore_faults: true
|
||||
tests:
|
||||
kernel.demand_paging:
|
||||
tags: kernel mmu demand_paging
|
||||
|
|
Loading…
Reference in a new issue