Skip to content

Commit

Permalink
Add the -s parameter back, necessary for SSH output in debug logs
Browse files Browse the repository at this point in the history
Contrarily to logs output through the logging module, SSH output is
captured by pytest, so --log-cli-level=debug doesn't display the output
anymore (it's displayed in cases or errors, but separate from other logs
so it's difficult to interpret).

Add the -s parameter back to disable output capture by pytest.

This does not solve everything: command output won't be repeated in the
captured logs in case of test failure, but this was already the case
before I removed the -s parameter.

Signed-off-by: Samuel Verschelde <stormi-xcp@ylix.fr>
  • Loading branch information
stormi committed May 18, 2022
1 parent 5190338 commit 5b97ff0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pytest.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[pytest]
addopts = -ra --maxfail=1
addopts = -ra --maxfail=1 -s
markers =
# *** Markers that change test behaviour ***
default_vm: mark a test with a default VM in case no --vm parameter was given.
Expand Down

0 comments on commit 5b97ff0

Please sign in to comment.