

def test_latest_unless_no_cwd_issue_6800(self):
    '\n        cwd=target was being passed to _run_check which blew up if\n        target dir did not already exist.\n        '
    name = os.path.join(integration.TMP, 'salt_repo')
    if os.path.isdir(name):
        shutil.rmtree(name)
    try:
        ret = self.run_state('git.latest', name='https://{0}/saltstack/salt-test-repo.git'.format(self.__domain), rev='develop', target=name, unless='test -e {0}'.format(name), submodules=True)
        self.assertSaltTrueReturn(ret)
        self.assertTrue(os.path.isdir(os.path.join(name, '.git')))
    finally:
        shutil.rmtree(ret, ignore_errors=True)

dataset/ETHPy150Open saltstack/salt/tests/integration/states/git.py GitTest.test_latest_unless_no_cwd_issue_6800/VarMisuse@131/237 `name`->`ret`