chiark / gitweb /
test suite: tagupl: New test case for new dgit-repos-server mode
[dgit.git] / tests / tests / forcesplit-overwrite
index d07d65a0d80cf8f9e4d1ecdc81a58d56d3cab5a2..9600d3a8887d1d424e4b65e1562fc2172c82db2c 100755 (executable)
@@ -17,7 +17,18 @@ t-commit 'No changes, just send to stable' '' stable
 t-refs-same-start
 t-ref-head
 
-t-dgit -wgf --split-view --overwrite=1.2 --dgit-view-save=split.p push-source stable
+try () {
+       t-dgit -wgf --split-view "$@" --dgit-view-save=split.p \
+               push-source stable
+}
+
+t-expect-fail E:'maintainer view tag.*not fast forward' \
+try
+
+t-expect-fail F:'debian/changelog does not mention 1.2' \
+try --overwrite
+
+try --overwrite=1.2
 git branch -f split.b split.p
 
 t-ref-head