Handle quoted paths in ansible-test diff parsing.

pull/57086/head
Matt Clay 5 years ago
parent 13c8f7b00c
commit 4df97c20b6

@ -180,7 +180,7 @@ class DiffParser:
"""Process a diff start line."""
self.complete_file()
match = re.search(r'^diff --git a/(?P<old_path>.*) b/(?P<new_path>.*)$', self.line)
match = re.search(r'^diff --git "?a/(?P<old_path>.*)"? "?b/(?P<new_path>.*)"?$', self.line)
if not match:
raise Exception('Unexpected diff start line.')

Loading…
Cancel
Save