chiark / gitweb /
test suite: lib-gdr: Break out t-gdr-prep-new-upstream
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 10 Aug 2018 06:45:22 +0000 (07:45 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 10 Aug 2018 11:35:13 +0000 (12:35 +0100)
This does not include `git tag' for the upstream, because
gdr-newupstream wants to test the case where the tag is missing.

Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-gdr
tests/tests/gdr-newupstream

index 1bb810f..849e3f6 100644 (file)
@@ -291,3 +291,14 @@ t-nmu-reconciled-good () {
        git checkout master
        t-dgit -wgf quilt-fixup
 }
+
+t-gdr-prep-new-upstream () {
+       uv=$1
+       t-git-next-date
+       git checkout make-upstream
+       git reset --hard upstream
+       t-make-new-upstream-tarball $uv
+       git push . make-upstream:upstream
+       git checkout master
+       t-git-next-date
+}
index ada5516..0724459 100755 (executable)
@@ -12,18 +12,7 @@ cd $p
 
 : 'upstream hat'
 
-new-upstream () {
-       uv=$1
-       t-git-next-date
-       git checkout make-upstream
-       git reset --hard upstream
-       t-make-new-upstream-tarball $uv
-       git push . make-upstream:upstream
-       git checkout master
-       t-git-next-date
-}
-
-new-upstream 2.1
+t-gdr-prep-new-upstream 2.1
 
 : 'maintainer hat'