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 --- 70-git.liw.fi.yarn | 5 +++++ 900-implements.yarn | 13 +++++++++++++ 2 files changed, 18 insertions(+) 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() -- cgit v1.2.1