RIOT/tests/congure_test
Francisco Molina 94da3ed9a7
tests/congure: reset before opening terminal
Some BOARD terminals are slow to start so if the BOARD is reset after
opening the terminal this can lead to off-by-one error when parsing
the output.

So instead do as testrunner and reset before opening the terminal.
Note that no interactive_sync is needed since a similar mechanism
happens in ShellInteraction.
2021-06-17 11:05:07 +02:00
..

Basic tests for the CongURE API

This test tests the congure_test test framework used for the other CongURE tests.

Usage

The test requires an up-to-date version of riotctrl with rapidjson support:

$ pip install --upgrade riotctrl[rapidjson]

Then simply run the application using:

$ BOARD="<board>" make flash test

It can also executed with pytest:

$ PYTHONPATH=../../dist/pythonlibs BOARD="<board>" pytest tests/01-run.py

Note that this only works from within the directory of the test, so if you are somewhere else, use

$ cd tests/congure_test

first to change into that.

Expected result

The application's test script passes without error code.