mirror of
https://github.com/curl/curl.git
synced 2025-03-07 15:27:17 +08:00
pytest: include buildinfo.txt
in the output
If present.
It aims to provide TextClutch the same build information that
`runtests.pl` already is providing.
Ref: https://testclutch.curl.se/static/reports/feature-matrix.html
Ref: #15256
Follow-up to 1fdea16846
#14802
Closes #15279
This commit is contained in:
parent
66cc015756
commit
75dfb7b649
@ -53,6 +53,13 @@ def pytest_report_header(config):
|
||||
report.extend([
|
||||
f' VsFTPD: {env.vsftpd_version()}, ftp:{env.ftp_port}, ftps:{env.ftps_port}'
|
||||
])
|
||||
buildinfo_fn = os.path.join(env.build_dir, 'buildinfo.txt')
|
||||
if os.path.exists(buildinfo_fn):
|
||||
with open(buildinfo_fn, 'r') as file_in:
|
||||
for line in file_in:
|
||||
line = line.strip()
|
||||
if line and not line.startswith('#'):
|
||||
report.extend([line])
|
||||
return '\n'.join(report)
|
||||
|
||||
# TODO: remove this and repeat argument everywhere, pytest-repeat can be used to repeat tests
|
||||
|
Loading…
Reference in New Issue
Block a user