Skip to content

Commit 0ce4de8

Browse files
aescolarcarlescufi
authored andcommitted
pytest sample & docs: Replace native_posix with native_sim
In the docs replace references to native_posix with native_sim Switch the default test platform to native_sim from native_posix Signed-off-by: Alberto Escolar Piedras <[email protected]>
1 parent c93cef0 commit 0ce4de8

File tree

3 files changed

+9
-7
lines changed

3 files changed

+9
-7
lines changed
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
tests:
22
sample.twister.pytest:
3-
platform_allow: native_posix
3+
platform_allow:
4+
- native_posix
5+
- native_sim
46
harness: pytest
57
harness_config:
68
pytest_args: ["--custom-pytest-arg", "foo", "--cmdopt", "."]
79
tags:
810
- test_framework
911
- pytest
1012
integration_platforms:
11-
- native_posix
13+
- native_sim

samples/subsys/testsuite/pytest/shell/testcase.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ tests:
66
extra_configs:
77
- arch:posix:CONFIG_NATIVE_UART_0_ON_STDINOUT=y
88
integration_platforms:
9-
- native_posix
9+
- native_sim
1010
- qemu_cortex_m3
1111
tags:
1212
- test_framework

scripts/pylib/pytest-twister-harness/README.rst

+4-4
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ Run exemplary test shell application by Twister:
2020
2121
cd ${ZEPHYR_BASE}
2222
23-
# native_posix & QEMU
24-
./scripts/twister -p native_posix -p qemu_x86 -T samples/subsys/testsuite/pytest/shell
23+
# native_sim & QEMU
24+
./scripts/twister -p native_sim -p qemu_x86 -T samples/subsys/testsuite/pytest/shell
2525
2626
# hardware
2727
./scripts/twister -p nrf52840dk_nrf52840 --device-testing --device-serial /dev/ttyACM0 -T samples/subsys/testsuite/pytest/shell
@@ -34,8 +34,8 @@ or build shell application by west and call pytest directly:
3434
3535
cd ${ZEPHYR_BASE}/samples/subsys/testsuite/pytest/shell
3636
37-
# native_posix
38-
west build -p -b native_posix -- -DCONFIG_NATIVE_UART_0_ON_STDINOUT=y
37+
# native_sim
38+
west build -p -b native_sim -- -DCONFIG_NATIVE_UART_0_ON_STDINOUT=y
3939
pytest --twister-harness --device-type=native --build-dir=build -p twister_harness.plugin
4040
4141
# QEMU

0 commit comments

Comments
 (0)