Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: read output of process until EOF #128

Merged
merged 2 commits into from
May 27, 2022

Conversation

Bastian-Krause
Copy link
Member

The tests run various processes, such as rauc-hawkbit-updater, nginx or rauc_dbus_dummy. The output of these processes is currently only read until we see the string/regex we expect. Everything else is not read and does not end up in the logs.

This is confusing to the person running the tests, because errors, tracebacks and other output the tests do not rely on is not logged.

To change this, read all relevant process output (until EOF) after the processes are terminated.

While at it, drop an unused line from conftest. It was there since the introduction of the Python test suite. It is a relict of a prior implementation.

The tests run various processes, such as rauc-hawkbit-updater, nginx or
rauc_dbus_dummy. The output of these processes is currently only read
until we see the string/regex we expect. Everything else is not read and
does not end up in the logs.

This is confusing to the person running the tests, because errors,
tracebacks and other output the tests do not rely on is not logged.

To change this, read all relevant process output (until EOF) after the
processes are terminated.

Signed-off-by: Bastian Krause <bst@pengutronix.de>
This unused variable was there since the introduction of the Python test
suite. It is a relict of a prior implementation.

Fixes: a5fc698 ("test: add basic tests")
Signed-off-by: Bastian Krause <bst@pengutronix.de>
@ejoerns ejoerns merged commit e54cee2 into rauc:master May 27, 2022
@Bastian-Krause Bastian-Krause deleted the bst/complete-test-output branch May 27, 2022 13:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants