Explicit dependency on a log output

This commit is contained in:
Adrien Ferrand 2020-02-04 22:20:56 +01:00
parent 8892f23267
commit bd610e4057
2 changed files with 4 additions and 1 deletions

View file

@ -42,7 +42,7 @@ def test_it(request):
with open(log_path) as file_h:
data = file_h.read()
assert 'DEBUG:certbot._internal.renewal:no renewal failures' in data, 'Renew task did not execute properly.'
assert 'no renewal failures' in data, 'Renew task did not execute properly.'
finally:
# Sadly this command cannot work in non interactive mode: uninstaller will ask explicitly permission in an UAC prompt

View file

@ -471,4 +471,7 @@ def handle_renewal_request(config):
if renew_failures or parse_failures:
raise errors.Error("{0} renew failure(s), {1} parse failure(s)".format(
len(renew_failures), len(parse_failures)))
# Windows installer integration tests rely on handle_renewal_request behavior here.
# If the text below changes, these tests will need to be updated accordingly.
logger.debug("no renewal failures")