chiark / gitweb /
git-debrebase: test suite: gdr-import-dgit: introduce nmu-fold
[dgit.git] / tests / tests / gdr-import-dgit
index 508f99974568443702c7240ef5044ce10ea5f785..62ae1241ea1ea1f58c26cf58204906acdf4bc7c2 100755 (executable)
@@ -43,17 +43,27 @@ nmu-upload-2
 
 : 'done the nmu, switching back to the maintainer hat'
 
-t-dgit fetch
-git merge --ff-only dgit/dgit/sid
+nmu-fold () {
+       t-dgit fetch
+       git merge --ff-only dgit/dgit/sid
 
-git diff --exit-code patch-queue/nmu
+       git diff --exit-code patch-queue/$nmubranch
 
-git branch t.before
+       git branch unlaundered.$nmubranch
 
-t-git-debrebase
-t-gdr-good laundered
+       t-git-debrebase
+
+       t-gdr-good laundered
+
+       t-git-debrebase stitch
+       t-gdr-good stitched
+}
+
+nmu-fold
 
-t-git-debrebase stitch
-t-gdr-good stitched
+v=2.0-3
+t-dch-commit -v $v -m "incorporate nmu"
+t-dch-commit -r sid
+t-dgit -wgf push-source
 
 t-ok