chiark / gitweb /
git-debrebase: test suite: lib-gdr: break out some more t-*
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 17 Feb 2018 23:26:53 +0000 (23:26 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 15:06:58 +0000 (16:06 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-gdr
tests/tests/gdr-diverge-nmu

index 26afb1d341823b18dea0e0b2f1b453f583a4ff28..d45759d778aec9f8b7941c56cca208340aee0e94 100644 (file)
@@ -184,3 +184,21 @@ t-nmu-upload-3 () {
        cd $p
        git checkout master
 }
+
+t-nmu-commit-an-upstream-change () {
+       echo >>newsrc.c "// more upstream"
+       git add newsrc.c
+       git commit -m 'UPSTREAM NMU'
+}
+
+t-maintainer-commit-some-changes () {
+       t-dch-commit -v$v -m "start $v"
+
+       t-some-changes "maintainer $v"
+       t-git-debrebase
+       t-git-debrebase stitch
+
+       git branch did.maintainer
+
+       t-git-next-date
+}
index 9fb2c5d565bca696fe6f09813c8a6f1190e48b24..9b37ca62e11622769ab2857de13f6ddadc899702 100755 (executable)
@@ -18,24 +18,15 @@ v=2.0-2+nmu1
 t-nmu-upload-1 nmu
 gbp pq import
 t-nmu-upload-2
-echo >>newsrc.c "// more upstream"
-git add newsrc.c
-git commit -m 'UPSTREAM NMU'
+t-nmu-commit-an-upstream-change
 t-nmu-upload-3
 
 : 'done the nmu, switching back to the maintainer hat'
 
 t-git-next-date
 
-t-dch-commit -v2.0-3 -m 'start -3'
-
-t-some-changes 'maintainer'
-t-git-debrebase
-t-git-debrebase stitch
-
-git branch did.maintainer
-
-t-git-next-date
+v=2.0-3
+t-maintainer-commit-some-changes
 
 t-dgit fetch
 t-git-next-date