test: Store logs to file instead of stderr
To make the stderr/stdout cleaner, changing pytest to stored debug log to files and only show INFO+ log to CLI. Signed-off-by: Gris Ge <fge@redhat.com>
This commit is contained in:
parent
2af5af61ab
commit
bb155c6908
@ -24,11 +24,12 @@ CREATED_INTERFACES=""
|
||||
INTERFACES="eth1 eth2"
|
||||
|
||||
PYTEST_OPTIONS="--verbose --verbose \
|
||||
--log-level=DEBUG \
|
||||
--log-file-level=DEBUG \
|
||||
--log-level=INFO \
|
||||
--log-date-format='%Y-%m-%d %H:%M:%S' \
|
||||
--log-format='%(asctime)s %(filename)s:%(lineno)d %(levelname)s %(message)s' \
|
||||
--durations=5 \
|
||||
--log-file=pytest-run.log"
|
||||
--log-file=$CONT_EXPORT_DIR/pytest-run.log"
|
||||
|
||||
NMSTATE_TEMPDIR=$(mktemp -d /tmp/nmstate-test-XXXX)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user