diff options
author | Lars Wirzenius <liw@liw.fi> | 2017-01-22 13:43:24 +0200 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2017-01-22 13:43:24 +0200 |
commit | 83bc34fd3861d27d0df228f83810fc1aa1abe37c (patch) | |
tree | 37604276fdbc00c37930f4a6c9938db9d324ee51 | |
parent | 18fc3a57881ad1482f809de702cd507ef0f4c32e (diff) | |
download | server-yarns-83bc34fd3861d27d0df228f83810fc1aa1abe37c.tar.gz |
Add scenario to test git:// works
-rw-r--r-- | 70-git.liw.fi.yarn | 5 | ||||
-rw-r--r-- | 900-implements.yarn | 13 |
2 files changed, 18 insertions, 0 deletions
diff --git a/70-git.liw.fi.yarn b/70-git.liw.fi.yarn index aff3f34..46e6fda 100644 --- a/70-git.liw.fi.yarn +++ b/70-git.liw.fi.yarn @@ -17,3 +17,8 @@ It must also have Gitano accessible over ssh. WHEN user runs Gitano help THEN exit code is 0 AND standard error matches "Gitano" + +Also, it'd be nice if the anonymous git protocol works. + + WHEN user clones the bumper repository over git:// + THEN exit code is 0 diff --git a/900-implements.yarn b/900-implements.yarn index 0855bb5..e5943f7 100644 --- a/900-implements.yarn +++ b/900-implements.yarn @@ -47,6 +47,19 @@ h.set_variable('stdout', out) h.set_variable('stderr', err) + IMPLEMENTS WHEN user clones the (\S+) repository over git:// + import os, re, cliapp, yarnhelper + h = yarnhelper.YarnHelper() + server = os.environ['SERVER'] + repo = h.get_next_match() + url = 'git://{}/{}'.format(server, repo) + argv = ['git', 'clone', url] + exit, out, err = cliapp.runcmd_unchecked(argv, cwd=os.environ['DATADIR']) + h.set_variable('argv', argv) + h.set_variable('exit', int(exit)) + h.set_variable('stdout', out) + h.set_variable('stderr', err) + IMPLEMENTS THEN exit code is (\d+) import yarnhelper h = yarnhelper.YarnHelper() |