From 19fe584068cb106c2b184b309595f0824c400f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Krzysztof=20Chru=C5=9Bci=C5=84ski?= Date: Wed, 2 Oct 2024 14:10:29 +0200 Subject: [PATCH] tests: benchmarks: multicore: idle_uarte: Few fixes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- tests/benchmarks/multicore/idle_uarte/prj.conf | 1 + tests/benchmarks/multicore/idle_uarte/src/main.c | 3 ++- tests/benchmarks/multicore/idle_uarte/testcase.yaml | 4 ++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/tests/benchmarks/multicore/idle_uarte/prj.conf b/tests/benchmarks/multicore/idle_uarte/prj.conf index b0c7890c2a90..59785a532261 100644 --- a/tests/benchmarks/multicore/idle_uarte/prj.conf +++ b/tests/benchmarks/multicore/idle_uarte/prj.conf @@ -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 diff --git a/tests/benchmarks/multicore/idle_uarte/src/main.c b/tests/benchmarks/multicore/idle_uarte/src/main.c index f54ca19df1eb..97e3916fa475 100644 --- a/tests/benchmarks/multicore/idle_uarte/src/main.c +++ b/tests/benchmarks/multicore/idle_uarte/src/main.c @@ -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; } diff --git a/tests/benchmarks/multicore/idle_uarte/testcase.yaml b/tests/benchmarks/multicore/idle_uarte/testcase.yaml index 223775d47320..d55bf1944e9a 100644 --- a/tests/benchmarks/multicore/idle_uarte/testcase.yaml +++ b/tests/benchmarks/multicore/idle_uarte/testcase.yaml @@ -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"