summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2018-02-17 18:57:03 +0000
committerIan Jackson <ijackson@chiark.greenend.org.uk>2018-06-16 16:04:33 +0100
commitfb0756665330648bb4cd525bd8a55a06a761370e (patch)
tree4ea32a06188d990a169286c48d2a1062e86e001f /tests
parent81b54cfc353832f717ad514b7c6a14e55a380b7d (diff)
git-debrebase: test suite: gdr-import-dgit: introduce nmu-fold
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/tests/gdr-import-dgit21
1 files changed, 13 insertions, 8 deletions
diff --git a/tests/tests/gdr-import-dgit b/tests/tests/gdr-import-dgit
index c4ca1ba..62ae124 100755
--- a/tests/tests/gdr-import-dgit
+++ b/tests/tests/gdr-import-dgit
@@ -43,18 +43,23 @@ 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
+}
-t-git-debrebase stitch
-t-gdr-good stitched
+nmu-fold
v=2.0-3
t-dch-commit -v $v -m "incorporate nmu"