chiark / gitweb /
test suite: Check that archive skew machinery reports warning
[dgit.git] / tests / tests / forcesplit-overwrite
index d07d65a0d80cf8f9e4d1ecdc81a58d56d3cab5a2..58262875f46edea73c8f26fc3ed3a286c1c24885 100755 (executable)
@@ -7,8 +7,7 @@ set -e
 
 t-setup-import examplegit
 
-t-select-package example
-cd example
+cd $p
 
 suite=stable
 
@@ -17,7 +16,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