tests/net/lib/lwm2m: Switch description to native_sim
native_posix is deprecated, let's switch the description & comments to refer to native_sim instead. Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
parent
4ea6cdf7db
commit
1aaea30adb
2 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
This directory contains list of testcases that use
|
This directory contains list of testcases that use
|
||||||
the Twister's Pytest integration to run testcases against Leshan demo server.
|
the Twister's Pytest integration to run testcases against Leshan demo server.
|
||||||
These tests use emulated hardware (native_posix).
|
These tests use emulated hardware (native_sim).
|
||||||
|
|
||||||
These tests require setup that is not done in Twister run, so follow this documentation to set
|
These tests require setup that is not done in Twister run, so follow this documentation to set
|
||||||
up the test environment.
|
up the test environment.
|
||||||
|
@ -105,7 +105,7 @@ Install with `pip install CoAPthon3`
|
||||||
## Running tests
|
## Running tests
|
||||||
|
|
||||||
```
|
```
|
||||||
twister -p native_posix -vv --enable-slow -T tests/net/lib/lwm2m/interop
|
twister -p native_sim -vv --enable-slow -T tests/net/lib/lwm2m/interop
|
||||||
```
|
```
|
||||||
|
|
||||||
Or use the Docker based testing
|
Or use the Docker based testing
|
||||||
|
|
|
@ -420,7 +420,7 @@ class Leshan:
|
||||||
Events are notifications, updates and sends.
|
Events are notifications, updates and sends.
|
||||||
|
|
||||||
The event stream must be closed after the use, so this must be used in 'with' statement like this:
|
The event stream must be closed after the use, so this must be used in 'with' statement like this:
|
||||||
with leshan.get_event_stream('native_posix') as events:
|
with leshan.get_event_stream('native_sim') as events:
|
||||||
data = events.next_event('SEND')
|
data = events.next_event('SEND')
|
||||||
|
|
||||||
If timeout happens, the event streams returns None.
|
If timeout happens, the event streams returns None.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue