chiark / gitweb /
test suite: lib-gdr: Check that we made patches with gdr
[dgit.git] / tests / lib-gdr
index 9ea5af51bcacbbe1f885d0535bdb02339183b6f3..acbfa92d29cc5b8653e1ba4ab025474da2611ab3 100644 (file)
@@ -21,6 +21,12 @@ t-gdr-good () {
        #   stitched
        #   pushed
 
+       case $state in
+       pushed*)
+               t-gdr-made-patches
+               ;;
+       esac
+
        git diff --quiet ${beforetag-t.before} -- ':.' ':!debian/patches'
 
        LC_MESSAGES=C t-git-debrebase status >../status.check
@@ -360,3 +366,8 @@ t-gdr-gbp-import-core () {
        git branch -D master
        git branch -m quilt-tip master
 }
+
+t-gdr-made-patches () {
+       git log -n1 --'pretty=format:%B' \
+       | egrep '^\[git-debrebase'
+}