Skip to content

Commit

Permalink
nilrt-snac: make test output ptest-compliant
Browse files Browse the repository at this point in the history
The NI ptest-parser (and ptests in general) use the AutoMake style of
test output. The nilrt-snac integration tests uses pytest formatting,
which is generally non-compliant and obscures individual testcase output
from being parsed by the RTOS ptesting pipeline.

Use the python3-unittest-automake-output plugin for pytest, to output
the test results in format ptest can parse.

Signed-off-by: Alex Stewart <[email protected]>
  • Loading branch information
amstewart committed Sep 20, 2024
1 parent ea2d6df commit 1c994ae
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion recipes-ni/nilrt-snac/files/run-ptest
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@
import pytest

pytest.main([
"-v",
"--automake",
"/usr/lib/nilrt-snac/tests/integration",
])
1 change: 1 addition & 0 deletions recipes-ni/nilrt-snac/nilrt-snac_git.bb
Original file line number Diff line number Diff line change
Expand Up @@ -43,4 +43,5 @@ RDEPENDS:${PN}-ptest += "\
bash \
python3-core \
python3-pytest \
python3-unittest-automake-output \
"

0 comments on commit 1c994ae

Please sign in to comment.