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 /900-implements.yarn | |
parent | 18fc3a57881ad1482f809de702cd507ef0f4c32e (diff) | |
download | server-yarns-83bc34fd3861d27d0df228f83810fc1aa1abe37c.tar.gz |
Add scenario to test git:// works
Diffstat (limited to '900-implements.yarn')
-rw-r--r-- | 900-implements.yarn | 13 |
1 files changed, 13 insertions, 0 deletions
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() |