This is an automated email from the git hooks/post-receive script.
nsoffer pushed a commit to branch master in repository sanlock.
commit a4ded879ecbddbc2328a2e59298fdaeae430c16f Author: Nir Soffer nsoffer@redhat.com AuthorDate: Sun Jun 16 18:28:33 2019 +0300
python: Use pytest normal mode
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 @@ -41,6 +41,15 @@ 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 ================== diff --git a/tox.ini b/tox.ini index 0cadfb5..4a28561 100644 --- a/tox.ini +++ b/tox.ini @@ -29,10 +29,9 @@ 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
sanlock-devel@lists.fedorahosted.org