diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-03-04 23:37:18 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-03-04 23:37:18 +0200 |
commit | 93a0feadb737d8c3271f57895c6192f401befb79 (patch) | |
tree | 5ff9da942f9b43d1a79cf0fc3c3712a40de86c4d /000.yarn | |
parent | 8f64a94c390a887ea3b1a35a298c868024fa6117 (diff) | |
download | git.liw.fi-ruleset-tests-93a0feadb737d8c3271f57895c6192f401befb79.tar.gz |
Refactor to make use off .git_as or .git_as_checked
Diffstat (limited to '000.yarn')
-rw-r--r-- | 000.yarn | 11 |
1 files changed, 3 insertions, 8 deletions
@@ -330,19 +330,14 @@ groups, and respositories. repo = helper.get_next_match() url = helper.repo_ssh_url(repo) dirname = helper.local_checkout_dirname(user, repo) - env = dict(os.environ) - env['GIT_SSH_COMMAND'] = helper.env_ssh_command(user) - cliapp.runcmd(['git', 'push', '--all', 'origin'], cwd=dirname, env=env) - + helper.git_as_checked(user, ['push', '--all', 'origin'], cwd=dirname) IMPLEMENTS THEN (\S+) cannot push (\S+) user = helper.get_next_match() repo = helper.get_next_match() dirname = helper.local_checkout_dirname(user, repo) - env = dict(os.environ) - env['GIT_SSH_COMMAND'] = helper.env_ssh_command(user) - exit, out, err = cliapp.runcmd_unchecked( - ['git', 'push', '--all', 'origin'], cwd=dirname, env=env) + exit, out, err = helper.git_as(user, + ['push', '--all', 'origin'], cwd=dirname) sys.stdout.write(out) sys.stderr.write(err) helper.assertNotEqual(exit, 0) |