Normalize crlf in tests

This commit is contained in:
Anthony Sottile 2019-12-23 18:27:30 -08:00
parent 517c3145f4
commit 4941ed58d5
7 changed files with 46 additions and 58 deletions

View file

@ -21,8 +21,7 @@ def try_repo_opts(repo, ref=None, **kwargs):
def _get_out(cap_out):
out = cap_out.get().replace('\r\n', '\n')
out = re.sub(r'\[INFO\].+\n', '', out)
out = re.sub(r'\[INFO\].+\n', '', cap_out.get())
start, using_config, config, rest = out.split('=' * 79 + '\n')
assert using_config == 'Using config:\n'
return start, config, rest