From 0b370bc4d5574adc33cb0aea68a35b9226caf0cc Mon Sep 17 00:00:00 2001 From: Arkadiusz Cholewinski Date: Wed, 18 Sep 2024 16:10:24 +0200 Subject: [PATCH] Tests: Ztest_params fix. - Add CONFIG_SHELL_PROMPT_UART to the prj.conf file. - Ensure the ztest_params test is flashed/run only once per Pytest session. Signed-off-by: Arkadiusz Cholewinski --- tests/ztest/ztest_param/prj.conf | 1 + tests/ztest/ztest_param/testcase.yaml | 2 ++ 2 files changed, 3 insertions(+) diff --git a/tests/ztest/ztest_param/prj.conf b/tests/ztest/ztest_param/prj.conf index 438b245ac07..7c6b898a9c8 100644 --- a/tests/ztest/ztest_param/prj.conf +++ b/tests/ztest/ztest_param/prj.conf @@ -1,3 +1,4 @@ CONFIG_ZTEST=y CONFIG_ZTEST_SHELL=y CONFIG_ZTEST_SHUFFLE=y +CONFIG_SHELL_PROMPT_UART="uart" diff --git a/tests/ztest/ztest_param/testcase.yaml b/tests/ztest/ztest_param/testcase.yaml index 66494f8f6dd..e8fef09ab64 100644 --- a/tests/ztest/ztest_param/testcase.yaml +++ b/tests/ztest/ztest_param/testcase.yaml @@ -4,3 +4,5 @@ tests: - qemu_x86 tags: test_framework harness: pytest + harness_config: + pytest_dut_scope: session