From e5252624cadca22e018ee32ade7c3bcc59f7c74d Mon Sep 17 00:00:00 2001 From: Kefu Chai Date: Thu, 2 Jul 2020 18:05:25 +0800 Subject: [PATCH] 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 --- tox.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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} -- 2.39.5