chiark / gitweb /
git-debrebase: test suite: introduce t-gdr-same-as-before
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Fri, 16 Feb 2018 20:32:38 +0000 (20:32 +0000)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sat, 16 Jun 2018 15:03:11 +0000 (16:03 +0100)
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
tests/lib-gdr
tests/tests/gdr-edits

index 4cfa62b..cb93773 100644 (file)
@@ -12,6 +12,11 @@ t-git-debrebase () {
 '
 }
 
+t-gdr-same-as-before () {
+       local beforetag=$1
+       git diff ${beforetag-t.before} -- ':.' ':!debian/patches'
+}
+
 t-gdr-branch-structure () {
        local state=$1
        # state should be one of
index cff33b1..2d596fc 100755 (executable)
@@ -21,17 +21,15 @@ t-dch-commit -r sid
 git tag t.before
 
 t-git-debrebase
-
-git diff t.before -- ':.' ':!debian/patches'
-
+t-gdr-same-as-before
 t-gdr-branch-structure laundered
 
 t-git-debrebase stitch --prose=wombat
-
+t-gdr-same-as-before
 t-gdr-branch-structure stitched
 
 t-dgit push-source
-
+t-gdr-same-as-before
 t-gdr-branch-structure pushed
 
 : todo 'more tests: convert dgit import new upstream version'