1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2024-09-14 20:13:21 +02:00

Fixing tests for git

This commit is contained in:
James Cammarata 2014-02-11 12:41:30 -05:00
parent fe94c0cd05
commit ce0b1a8a96

View file

@ -199,7 +199,7 @@ class TestRunner(unittest.TestCase):
result = self._run('git', ["repo=\"file:///tmp/%s\"" % git_demo, "dest=/tmp/%s" % git_bare, "bare=yes", "remote=test"]) result = self._run('git', ["repo=\"file:///tmp/%s\"" % git_demo, "dest=/tmp/%s" % git_bare, "bare=yes", "remote=test"])
assert result['changed'] assert result['changed']
# test a no-op fetch, add origin for el6 versions of git # test a no-op fetch, add origin for el6 versions of git
self._run('command', ['git remote add origin file:///tmp/%s' % git_demo, 'chdir=/tmp/%s' % git_dm]) self._run('command', ['git', 'remote', 'add', 'origin', 'file:///tmp/%s' % git_demo, 'chdir=/tmp/%s' % git_bare])
result = self._run('git', ["repo=\"file:///tmp/%s\"" % git_demo, "dest=/tmp/%s" % git_bare, "bare=yes"]) result = self._run('git', ["repo=\"file:///tmp/%s\"" % git_demo, "dest=/tmp/%s" % git_bare, "bare=yes"])
assert not result['changed'] assert not result['changed']
# test whether fetch is working for bare repos # test whether fetch is working for bare repos