Browse Source

unit tests: Capture log output

Debugging unit test failures is very challenging because all of the log
output is mixed together. Capture the log messages and store them as
part of the test, so that only log messages associated with failures are
output, interleaved correctly with the results.

This does not capture logs sent to stdout by _early_log(), although that
would be a nice further improvement.

Change-Id: I01e409ea73ff444e16caae0078e81585c703d5a5
changes/87/788587/2
Zane Bitter 2 weeks ago
parent
commit
b510d2d4d0
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      tox.ini

+ 1
- 0
tox.ini View File

@ -11,6 +11,7 @@ setenv =
VIRTUAL_ENV={envdir}
PYTHONDONTWRITEBYTECODE = 1
OS_TEST_PATH=./ironic_python_agent/tests/unit
OS_LOG_CAPTURE={env:OS_LOG_CAPTURE:true}
LANGUAGE=en_US
LC_ALL=en_US.utf-8
deps =


Loading…
Cancel
Save