Skip to content

Commit

Permalink
tests: benchmarks: multicore: idle_uarte: Few fixes
Browse files Browse the repository at this point in the history
Due to missing Kconfig and wrong error check test was returning
early before start of the test.

Additionally, remove power states which are now defined in the
device dtsi.

Fix pytest name.

Signed-off-by: Krzysztof Chruściński <[email protected]>
  • Loading branch information
nordic-krch authored and rlubos committed Oct 14, 2024
1 parent 08d85b1 commit 19fe584
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions tests/benchmarks/multicore/idle_uarte/prj.conf
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
CONFIG_SERIAL=y
CONFIG_MAIN_STACK_SIZE=2048
CONFIG_UART_ASYNC_API=y
CONFIG_UART_USE_RUNTIME_CONFIGURE=y

CONFIG_PM=y
CONFIG_PM_S2RAM=y
Expand Down
3 changes: 2 additions & 1 deletion tests/benchmarks/multicore/idle_uarte/src/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,9 @@ int main(void)
return -1;
}

/* UART is disabled so expect error. */
err = uart_rx_disable(uart_dev);
if (err != 0) {
if (err != -EFAULT) {
printk("Unexpected error when disabling RX: %d\n", err);
return -1;
}
Expand Down
4 changes: 2 additions & 2 deletions tests/benchmarks/multicore/idle_uarte/testcase.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,6 @@ tests:
extra_args:
- SB_CONF_FILE=sysbuild/nrf54h20dk_nrf54h20_cpurad.conf
harness_config:
fixture: ppk_power_measure
fixture: gpio_loopback
pytest_root:
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption"
- "${CUSTOM_ROOT_TEST_DIR}/test_measure_power_consumption.py::test_measure_and_data_dump_power_consumption_uarte"

0 comments on commit 19fe584

Please sign in to comment.