try fix -oldest lock_test.py

This commit is contained in:
Alex Zorin 2021-02-16 09:37:25 +11:00
parent 436bd76d6b
commit e0298e4e97

View file

@ -215,7 +215,8 @@ def check_error(command, dir_path):
if ret == 0:
report_failure("Certbot didn't exit with a nonzero status!", out, err)
match = re.search("See the logfile '(.*)' ", err)
# this regex looks weird in order to deal with a text change between HEAD and -oldest
match = re.search("ee the logfile '(.*)' ", err)
if match is not None:
# Get error output from more verbose logfile
with open(match.group(1)) as f: