summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-11 18:55:59 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2022-12-11 22:07:53 +0000
commit9dba93fbcb9600b2e53baa51197a235cc9030905 (patch)
tree8a4d897f40671373c0d390f4f529881555de591a /tests
parent1405aa3c39a53ad6364622ecd2e18d892b2a1f09 (diff)
tests: rpush: Break out t-dgit-rpush
We're going to want to call this several times. Use the config override here. This is going to become the test case for all that. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/rpush6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/tests/rpush b/tests/tests/rpush
index 9bff006..783e7d9 100755
--- a/tests/tests/rpush
+++ b/tests/tests/rpush
@@ -17,11 +17,15 @@ debcommit -a
t-refs-same-start
t-ref-head
+t-dgit-rpush () {
+ t-dgit "$@" --ssh=$troot/ssh rpush somehost:$tmp/$p
+}
+
t-dgit --dpkg-buildpackage:-d build
mkdir $tmp/empty
cd $tmp/empty
-t-dgit --ssh=$troot/ssh rpush-built somehost:$tmp/$p
+t-dgit-rpush -cdgit.default.rpush-subcmd=built
cd $tmp/$p
t-pushed-good dgit/sid