Handle quoted paths in ansible-test diff parsing.
This commit is contained in:
parent
13c8f7b00c
commit
4df97c20b6
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue