]> git.apps.os.sepia.ceph.com Git - teuthology.git/commitdiff
tox.ini: force pytest to add a formatter to logger
authorKefu Chai <kchai@redhat.com>
Thu, 2 Jul 2020 10:05:25 +0000 (18:05 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 19 Jul 2020 14:56:39 +0000 (22:56 +0800)
as `test_sh_progress` in `teuthology/test/test_misc.py` tries to access
LogRecord.asctime for verifying the behavior of `misc.sh()`

Signed-off-by: Kefu Chai <kchai@redhat.com>
tox.ini

diff --git a/tox.ini b/tox.ini
index 5f02ff102bf2b3981bd44319d47209db07ea554c..247adeccefb55f0fe11c166b0cdad1578d5993ce 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -11,7 +11,7 @@ deps=
   fudge
   pytest-cov==2.8.1
   coverage==4.5.4
-
+log_format = %(asctime)s %(levelname)s %(message)s
 commands=
     python -m pytest --cov=teuthology --cov-report=term -v {posargs:teuthology scripts}