From: Kefu Chai Date: Thu, 2 Jul 2020 10:05:25 +0000 (+0800) Subject: tox.ini: force pytest to add a formatter to logger X-Git-Tag: 1.1.0~61^2~2 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=e5252624cadca22e018ee32ade7c3bcc59f7c74d;p=teuthology.git tox.ini: force pytest to add a formatter to logger 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 --- diff --git a/tox.ini b/tox.ini index 5f02ff102b..247adeccef 100644 --- 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}