ansible-config: add simple tests (#34900)

* Revert "Fix ansible-config with python3 (#34673)"

This reverts commit 2a9daaa45b.

* ansible-config: add simple tests

* Fix ansible-config with python3

* ansible-test: don't quote "unusual" characters
This commit is contained in:
Pilou 2018-01-17 15:33:33 +01:00 committed by Adam Miller
parent 93acd7c651
commit 217ff4498c
5 changed files with 19 additions and 6 deletions

View file

@ -18,13 +18,16 @@ class Git(object):
self.args = args
self.git = 'git'
def get_diff(self, args):
def get_diff(self, args, git_options=None):
"""
:type args: list[str]
:type options: list[str]
:rtype: list[str]
"""
cmd = ['diff'] + args
return self.run_git_split(cmd, '\n', str_errors='replace')
if git_options is None:
git_options = ['-c', 'core.quotePath=']
return self.run_git_split(git_options + cmd, '\n', str_errors='replace')
def get_diff_names(self, args):
"""