Skip to content

Commit

Permalink
yamllint: indentation: fix files in samples/
Browse files Browse the repository at this point in the history
Fix the YAML files indentation for files in samples/.

Signed-off-by: Fabio Baltieri <[email protected]>
  • Loading branch information
fabiobaltieri authored and carlescufi committed Jan 4, 2023
1 parent 3e7e44b commit 792469a
Show file tree
Hide file tree
Showing 73 changed files with 509 additions and 508 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ tests:
harness_config:
type: one_line
regex:
- "Hello World! (.*)"
- "Hello World! (.*)"
22 changes: 11 additions & 11 deletions samples/arch/smp/pi/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,17 @@ sample:
a number of threads
name: SMP Pi
common:
tags: introduction
integration_platforms:
- qemu_x86_64
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "Calculate first [0-9]+ digits of Pi independently by [0-9]+ threads.(.*)"
- "Pi value calculated by thread #[0-9]+: [0-9]+(.*)"
- "All [0-9]+ threads executed by [0-9]+ cores in [0-9]+ msec(.*)"
tags: introduction
integration_platforms:
- qemu_x86_64
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "Calculate first [0-9]+ digits of Pi independently by [0-9]+ threads.(.*)"
- "Pi value calculated by thread #[0-9]+: [0-9]+(.*)"
- "All [0-9]+ threads executed by [0-9]+ cores in [0-9]+ msec(.*)"
tests:
sample.smp.pi:
tags: introduction
Expand Down
14 changes: 7 additions & 7 deletions samples/arch/smp/pktqueue/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ sample:
a number of threads
name: SMP Pktqueue
common:
tags: introduction
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "RESULT: OK(.*)"
tags: introduction
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "RESULT: OK(.*)"

tests:
sample.smp.pktqueue:
Expand Down
24 changes: 12 additions & 12 deletions samples/basic/servo_motor/dts/bindings/pwm-servo.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,17 +8,17 @@ compatible: "pwm-servo"
include: base.yaml

properties:
pwms:
required: true
type: phandle-array
description: PWM specifier driving the servo motor.
pwms:
required: true
type: phandle-array
description: PWM specifier driving the servo motor.

min-pulse:
required: true
type: int
description: Minimum pulse width (nanoseconds).
min-pulse:
required: true
type: int
description: Minimum pulse width (nanoseconds).

max-pulse:
required: true
type: int
description: Maximum pulse width (nanoseconds).
max-pulse:
required: true
type: int
description: Maximum pulse width (nanoseconds).
12 changes: 6 additions & 6 deletions samples/boards/mec15xxevb_assy6853/power_management/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ tests:
tags: board pm
harness: console
harness_config:
type: multi_line
ordered: false
regex:
- "Wake from Light Sleep"
- "Wake from Deep Sleep"
repeat: 3
type: multi_line
ordered: false
regex:
- "Wake from Light Sleep"
- "Wake from Deep Sleep"
repeat: 3
16 changes: 8 additions & 8 deletions samples/boards/nrf/nrf53_sync_rtc/net/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
sample:
description: This app shows how RTCs are synchronized
on nrf53 cores.
name: nRF53 Synchronized RTC sample (net)
description: This app shows how RTCs are synchronized
on nrf53 cores.
name: nRF53 Synchronized RTC sample (net)
common:
harness: remote
harness: remote
tests:
sample.boards.nrf.nrf53_sync_rtc.net:
platform_allow: nrf5340dk_nrf5340_cpunet
integration_platforms:
- nrf5340dk_nrf5340_cpunet
sample.boards.nrf.nrf53_sync_rtc.net:
platform_allow: nrf5340dk_nrf5340_cpunet
integration_platforms:
- nrf5340dk_nrf5340_cpunet
16 changes: 8 additions & 8 deletions samples/boards/nrf/nrf53_sync_rtc/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
sample:
description: This app shows how RTCs are synchronized
on nrf53 cores.
name: nRF53 Synchronized RTC sample
description: This app shows how RTCs are synchronized
on nrf53 cores.
name: nRF53 Synchronized RTC sample
common:
harness: remote
harness: remote
tests:
sample.boards.nrf.nrf53_sync_rtc:
platform_allow: nrf5340dk_nrf5340_cpuapp
integration_platforms:
- nrf5340dk_nrf5340_cpuapp
sample.boards.nrf.nrf53_sync_rtc:
platform_allow: nrf5340dk_nrf5340_cpuapp
integration_platforms:
- nrf5340dk_nrf5340_cpuapp
14 changes: 7 additions & 7 deletions samples/drivers/counter/alarm/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ tests:
integration_platforms:
- nucleo_f746zg
harness_config:
type: multi_line
ordered: true
regex:
- "Counter alarm sample"
- "Set alarm in 2 sec"
- "!!! Alarm !!!"
- "Now: [2|3]"
type: multi_line
ordered: true
regex:
- "Counter alarm sample"
- "Set alarm in 2 sec"
- "!!! Alarm !!!"
- "Now: [2|3]"
depends_on: counter
6 changes: 3 additions & 3 deletions samples/drivers/display/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,9 @@ tests:
platform_allow: native_posix
extra_args: DTC_OVERLAY_FILE="dummy_dc.overlay"
extra_configs:
- CONFIG_DUMMY_DISPLAY=y
- CONFIG_SDL_DISPLAY=n
- CONFIG_TEST=y
- CONFIG_DUMMY_DISPLAY=y
- CONFIG_SDL_DISPLAY=n
- CONFIG_TEST=y
tags: display
sample.display.max7219:
platform_allow: nrf52840dk_nrf52840
Expand Down
2 changes: 1 addition & 1 deletion samples/drivers/eeprom/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,6 @@ tests:
extra_args: SHIELD=x_nucleo_eeprma2
harness: console
harness_config:
fixture: fixture_shield_x_nucleo_eeprma2
fixture: fixture_shield_x_nucleo_eeprma2
integration_platforms:
- nucleo_f070rb
24 changes: 12 additions & 12 deletions samples/drivers/espi/dts/bindings/mec15xx-board-power.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,16 @@ description: |
GPIOs required before performing a eSPI host-slave handshake
properties:
pwrg-gpios:
type: phandle-array
required: true
description: |
Board GPIO input used to detect that power rails are stable.
pwrg-gpios:
type: phandle-array
required: true
description: |
Board GPIO input used to detect that power rails are stable.
rsm-gpios:
type: phandle-array
required: true
description: |
Board GPIO output used to notify eSPI master to ackwnowledge
power has stabilized and bare minimum initialization in eSPI slave
is complete so eSPI master can proceed with eSPI handshake.
rsm-gpios:
type: phandle-array
required: true
description: |
Board GPIO output used to notify eSPI master to ackwnowledge
power has stabilized and bare minimum initialization in eSPI slave
is complete so eSPI master can proceed with eSPI handshake.
70 changes: 35 additions & 35 deletions samples/drivers/espi/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,38 +9,38 @@ tests:
depends_on: espi
harness: console
harness_config:
fixture: espi_device_connect
type: multi_line
ordered: true
regex:
- "Hello eSPI test (.*)"
- "eSPI test - I/O initialization...complete"
- "eSPI slave configured successfully!"
- "eSPI test - callbacks initialization... complete"
- "eSPI test - Power initialization...complete"
- "eSPI BUS reset (.*)"
- "espi: Hello eSPI test mec1501modular_assy6885"
- "espi: eSPI slave configured successfully"
- "espi: eSPI test - callbacks initialization..."
- "espi: complete"
- "espi: eSPI test - callbacks registration..."
- "espi: complete"
- "espi: eSPI BUS reset 1"
- "espi: VW channel is ready"
- "espi: Flash channel is ready"
- "espi: Test eSPI write flash"
- "espi: 16 write flash transactions completed"
- "espi: 16 write flash transactions completed"
- "espi: Test eSPI read flash"
- "espi: 16 read flash transactions completed"
- "espi: 16 read flash transactions completed"
- "espi: eSPI test - Handshake with eSPI master..."
- "espi: 1st phase completed"
- "espi: 2nd phase completed"
- "espi: PLT_RST changed 1"
- "espi: 3rd phase completed"
- "espi: get_pch_temp:"
- "espi: OOB transaction completed rcvd: 4 bytes"
- "espi: Postcode fe"
- "espi: Postcode 7f"
- "espi: eSPI sample completed"
fixture: espi_device_connect
type: multi_line
ordered: true
regex:
- "Hello eSPI test (.*)"
- "eSPI test - I/O initialization...complete"
- "eSPI slave configured successfully!"
- "eSPI test - callbacks initialization... complete"
- "eSPI test - Power initialization...complete"
- "eSPI BUS reset (.*)"
- "espi: Hello eSPI test mec1501modular_assy6885"
- "espi: eSPI slave configured successfully"
- "espi: eSPI test - callbacks initialization..."
- "espi: complete"
- "espi: eSPI test - callbacks registration..."
- "espi: complete"
- "espi: eSPI BUS reset 1"
- "espi: VW channel is ready"
- "espi: Flash channel is ready"
- "espi: Test eSPI write flash"
- "espi: 16 write flash transactions completed"
- "espi: 16 write flash transactions completed"
- "espi: Test eSPI read flash"
- "espi: 16 read flash transactions completed"
- "espi: 16 read flash transactions completed"
- "espi: eSPI test - Handshake with eSPI master..."
- "espi: 1st phase completed"
- "espi: 2nd phase completed"
- "espi: PLT_RST changed 1"
- "espi: 3rd phase completed"
- "espi: get_pch_temp:"
- "espi: OOB transaction completed rcvd: 4 bytes"
- "espi: Postcode fe"
- "espi: Postcode 7f"
- "espi: eSPI sample completed"
4 changes: 2 additions & 2 deletions samples/drivers/fpga/fpga_controller/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ sample:
name: FPGA Controller sample

common:
tags: FPGA
build_only: true
tags: FPGA
build_only: true

tests:
sample.drivers.fpga_controller:
Expand Down
8 changes: 4 additions & 4 deletions samples/drivers/i2c_fujitsu_fram/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ tests:
filter: dt_nodelabel_enabled("i2c0")
harness: console
harness_config:
type: one_line
regex:
- "Data comparison successful."
fixture: fixture_i2c_FRAM
type: one_line
regex:
- "Data comparison successful."
fixture: fixture_i2c_FRAM
12 changes: 6 additions & 6 deletions samples/drivers/i2s/litex/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ sample:

name: i2s example
common:
tags: introduction
harness: console
harness_config:
type: one_line
regex:
- "i2s example (.*)"
tags: introduction
harness: console
harness_config:
type: one_line
regex:
- "i2s example (.*)"
16 changes: 8 additions & 8 deletions samples/drivers/jesd216/sample.yaml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
sample:
name: JESD216 Sample
common:
tags: spi flash
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "sfdp-bfp ="
- "jedec-id ="
tags: spi flash
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "sfdp-bfp ="
- "jedec-id ="
tests:
sample.drivers.jesd216:
platform_exclude: hifive1 hifive_unleashed hifive_unmatched mimxrt1170_evk_cm7
Expand Down
10 changes: 5 additions & 5 deletions samples/drivers/kscan/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ tests:
tags: drivers kscan
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "kb data(.*)"
fixture: fixture_connect_keyboard
type: multi_line
ordered: true
regex:
- "kb data(.*)"
fixture: fixture_connect_keyboard
depends_on: kscan
8 changes: 4 additions & 4 deletions samples/drivers/kscan_touch/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ tests:
tags: drivers kscan_touch
harness: console
harness_config:
type: multi_line
ordered: true
regex:
- "kb data(.*)"
type: multi_line
ordered: true
regex:
- "kb data(.*)"
depends_on: kscan:touch
12 changes: 6 additions & 6 deletions samples/drivers/lcd_cyclonev_socdk/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,12 @@ sample:
description: Cyclone V Soc Devkit LCD sample
name: lcd_cyclonev_socdk
common:
tags: introduction
harness: console
harness_config:
type: one_line
regex:
- "Hello World! (.*)"
tags: introduction
harness: console
harness_config:
type: one_line
regex:
- "Hello World! (.*)"
tests:
sample.lcd_cyclonev_socdk.helloworld:
platform_allow: cyclonev_socdk
Expand Down
2 changes: 1 addition & 1 deletion samples/drivers/led_ws2812/sample.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ tests:
tags: LED
filter: dt_compat_enabled("worldsemi,ws2812-spi")
harness_config:
fixture: fixture_led_ws2812
fixture: fixture_led_ws2812
Loading

0 comments on commit 792469a

Please sign in to comment.