summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2017-03-04 20:16:58 +0200
committerLars Wirzenius <liw@liw.fi>2017-03-04 20:16:58 +0200
commit04caf681daf43f233192b9f45ffc338205b54f4a (patch)
tree70ccfe2fbdf6ee14ec91147d8dbb443827afaa28
parent3b651fb14c1018d017b7fecd0be9a853094726d2 (diff)
downloadgit.liw.fi-ruleset-tests-04caf681daf43f233192b9f45ffc338205b54f4a.tar.gz
Drop now-unnecessary debugging
-rw-r--r--000.yarn11
-rw-r--r--yarnhelper.py5
2 files changed, 1 insertions, 15 deletions
diff --git a/000.yarn b/000.yarn
index f78a27a..75ece1c 100644
--- a/000.yarn
+++ b/000.yarn
@@ -216,7 +216,6 @@ groups, and respositories.
helper.gitano(None, 'user add {} {}@example.com Test {}'.format(username, username, username))
pubkey = helper.ssh_keygen(username)
helper.gitano(None, 'as {} sshkey add default'.format(username), stdin=pubkey)
- print helper.gitano(username, 'whoami')
IMPLEMENTS WHEN admin creates group (\S+)
group = helper.get_next_match()
@@ -240,13 +239,7 @@ groups, and respositories.
repo = helper.get_next_match()
url = helper.repo_ssh_url(repo)
dirname = '{}_{}'.format(user, repo)
-
- print 'user:', user
- print 'repo:', repo
- print 'url:', url
- print helper.gitano(user, 'whoami')
-
- print helper.git_as(user, ['clone', url, dirname])
+ helper.git_as(user, ['clone', url, dirname])
IMPLEMENTS WHEN admin sets (\S+) config (\S+) to (\S+)
repo = helper.get_next_match()
@@ -257,8 +250,6 @@ groups, and respositories.
IMPLEMENTS FINALLY admin removes things that were created
def iter(var, prefix):
items = helper.get_variable(var, [])
- with open('/tmp/yarn.out', 'a') as f:
- f.write('%s: %r\n' % (var, items))
for item in items:
helper.gitano_confirm_with_token(prefix, item)
iter('users', 'user del')
diff --git a/yarnhelper.py b/yarnhelper.py
index a3c2ddd..8af9cf5 100644
--- a/yarnhelper.py
+++ b/yarnhelper.py
@@ -179,10 +179,6 @@ class YarnHelper(object):
def gitano(self, user, args, stdin=None): # pragma: no cover
server = os.environ['GITANO_SERVER']
- print '=' * 77
- print 'tgt:', 'git@{}'.format(server)
- print 'args:', repr(args.split())
- print 'listdir:', repr(os.listdir('.'))
kwargs = {
'stderr': subprocess.STDOUT,
'ssh_options': [
@@ -193,7 +189,6 @@ class YarnHelper(object):
}
if stdin is not None:
kwargs['feed_stdin'] = stdin
- print 'kwargs:', repr(kwargs)
return cliapp.ssh_runcmd(
'git@{}'.format(server),
args.split(),