Add pytest logs (#6392)

* add pytest logs

Signed-off-by: ThreadDao <yufen.zong@zilliz.com>

* increase ci time to 45m

Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
pull/6402/head
ThreadDao 2021-07-09 14:03:47 +08:00 committed by GitHub
parent da628863bc
commit 5acf569540
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 10 additions and 4 deletions

View File

@ -1,6 +1,6 @@
#!/usr/bin/env groovy
int timeout_minutes = 30
int timeout_minutes = 45
int delay_minutes = 5
int ci_timeout = (timeout_minutes - delay_minutes) * 60

View File

@ -1,5 +1,11 @@
[pytest]
addopts = --host 10.98.0.7 --html=/tmp/ci_logs/report.html --self-contained-html
addopts = --host 10.98.0.7 --html=/tmp/ci_logs/report.html --self-contained-html -v
# -;addopts = --host 172.28.255.155 --html=/tmp/report.html
# python3 -W ignore -m pytest
# python3 -W ignore -m pytest
log_format = [%(asctime)s - %(levelname)s - %(name)s]: %(message)s (%(filename)s:%(lineno)s)
log_date_format = %Y-%m-%d %H:%M:%S
filterwarnings =
ignore::DeprecationWarning

View File

@ -34,7 +34,7 @@ class TestLog:
ch = logging.StreamHandler(sys.stdout)
ch.setLevel(logging.DEBUG)
ch.setFormatter(formatter)
self.log.addHandler(ch)
# self.log.addHandler(ch)
except Exception as e:
print("Can not use %s or %s or %s to log. error : %s" % (log_debug, log_file, log_err, str(e)))