From 83bc34fd3861d27d0df228f83810fc1aa1abe37c Mon Sep 17 00:00:00 2001 From: Lars Wirzenius Date: Sun, 22 Jan 2017 13:43:24 +0200 Subject: Add scenario to test git:// works --- 900-implements.yarn | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to '900-implements.yarn') 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() -- cgit v1.2.1