Pytest usage in DejaGNU?
Joseph Myers
joseph@codesourcery.com
Mon Dec 14 21:21:27 GMT 2020
On Mon, 14 Dec 2020, Martin Liška wrote:
> + spawn -noecho pytest -rA -s --tb=no $script
"pytest" might not be the right command everywhere. If I install
python3-pytest on Ubuntu 20.04 I only get /usr/bin/pytest-3 not
/usr/bin/pytest.
There is a clear advantage to any usage of Python only depending on the
standard library and not other Python packages.
> PASSED test_json.py::test_gcov_output
> PASSED test_json.py::test_gcov_output
> PASSED test_json.py::test_gcov_output
The names after "PASS: " or "FAIL: " in DejaGnu output should be unique
(and not depend on whether the test in question passes or fails, or on
variables such as the build directory); there should not be three tests
with the same name.
--
Joseph S. Myers
joseph@codesourcery.com
More information about the Gcc
mailing list