We have too many tests to use verbose mode. If verbose more is needed it can be enabled using:
tox -e py36 tests/python_test.py -- -vv
Or using environment variable:
export PYTEST_ADDOPTS=-vv
Signed-off-by: Nir Soffer nsoffer@redhat.com --- README.dev | 9 +++++++++ tox.ini | 3 +-- 2 files changed, 10 insertions(+), 2 deletions(-)
diff --git a/README.dev b/README.dev index 8ade5e6..7f3df2c 100644 --- a/README.dev +++ b/README.dev @@ -39,10 +39,19 @@ To run only tests matching the substring "foo":
To run basic lint and style check:
$ tox -e flake8
+Sometimes when debugging failing tests verbose mode is useful. You can +enable it using: + + $ tox -e py36 tests/python_test.py -- -vv + +Or using environment variable: + + export PYTEST_ADDOPTS=-vv +
Testing 4K support ==================
To enable the 4k tests, you need to setup 4k stroage for the tests: diff --git a/tox.ini b/tox.ini index 0cadfb5..4a28561 100644 --- a/tox.ini +++ b/tox.ini @@ -27,12 +27,11 @@ deps = flake8 commands = flake8 --statistics tests python
[pytest] # Notes: # --basetemp: we must use /var/tmp as sanlock uses direct I/O. -# -vv: increasing verbosify twice shows more detailed failures tracebacks. # -rxX show extra test summary: (x)failed, (X)passed, # --durations: show slowest test duration -addopts = -rxX -vv --basetemp=/var/tmp/sanlock --durations=10 +addopts = -rxX --basetemp=/var/tmp/sanlock --durations=10
[flake8] show_source = True