diff --git a/tests/test_deploy_key.py b/tests/test_deploy_key.py index cf34f2a81ec316822824749ab097225d43cbc89b..420b6d725bf9f95655f8decedd8eb27beac370df 100644 --- a/tests/test_deploy_key.py +++ b/tests/test_deploy_key.py @@ -5,4 +5,5 @@ testinfra_hosts = AnsibleRunner('.molecule/ansible_inventory').get_hosts('all') def test_deploy_key(Command, Sudo): with Sudo(user='nobody'): - assert Command('git -C /tmp/ansible-role-deploy-key pull').rc == 0 + assert Command( + 'git --git-dir /tmp/ansible-role-deploy-key/.git pull').rc == 0