[prev in list] [next in list] [prev in thread] [next in thread] 

List:       sanlock-devel
Subject:    [sanlock] 02/02: python: Use pytest normal mode
From:       pagure () pagure ! io
Date:       2019-06-17 13:46:54
Message-ID: 20190617134652.58A7A253011C () pagure01 ! fedoraproject ! org
[Download RAW message or body]

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

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.
_______________________________________________
sanlock-devel mailing list -- sanlock-devel@lists.fedorahosted.org
To unsubscribe send an email to sanlock-devel-leave@lists.fedorahosted.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedorahosted.org/archives/list/sanlock-devel@lists.fedorahosted.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic