chiark / gitweb /
test suite: Separate t-gdr-gbp-import-core from -with-queue
[dgit.git] / tests / lib-gdr
index 9ea5af51bcacbbe1f885d0535bdb02339183b6f3..e6af12a65945ca5e087ed56aea269ad041cc5843 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
@@ -345,6 +351,10 @@ t-gdr-gbp-import-core () {
        git add debian
        git commit -m "an upstream retcon ($0)"
        git tag v1.0
+}
+
+t-gdr-gbp-import-core-with-queue () {
+       t-gdr-gbp-import-core
 
        : 'fake up that our quilt-tip was descended from upstream'
        git checkout quilt-tip
@@ -360,3 +370,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'
+}