From 4df97c20b6c55ca60fb0437dbff92facc3aa1727 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Fri, 2 Aug 2019 09:24:14 -0700 Subject: [PATCH] Handle quoted paths in ansible-test diff parsing. --- test/runner/lib/diff.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/runner/lib/diff.py b/test/runner/lib/diff.py index 37c4685ebce..f0cb93d4fd6 100644 --- a/test/runner/lib/diff.py +++ b/test/runner/lib/diff.py @@ -180,7 +180,7 @@ class DiffParser: """Process a diff start line.""" self.complete_file() - match = re.search(r'^diff --git a/(?P.*) b/(?P.*)$', self.line) + match = re.search(r'^diff --git "?a/(?P.*)"? "?b/(?P.*)"?$', self.line) if not match: raise Exception('Unexpected diff start line.')