summaryrefslogtreecommitdiff
path: root/tests/tests/push-newpackage
diff options
context:
space:
mode:
authorIan Jackson <ijackson@chiark.greenend.org.uk>2014-08-03 18:02:13 +0100
committerIan Jackson <ijackson@chiark.greenend.org.uk>2014-08-03 18:02:13 +0100
commit287a7f0fc2a71b5e4df36e9f1ecf9b05d0212a85 (patch)
treeeffb5132bfd6a132c6c68f2f59ca07b9cb195c54 /tests/tests/push-newpackage
parent0efc9955c6c355f5dd6e98c8097bd3938beb49d1 (diff)
Test mismatch during push
Diffstat (limited to 'tests/tests/push-newpackage')
-rwxr-xr-xtests/tests/push-newpackage11
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/tests/push-newpackage b/tests/tests/push-newpackage
index eea5685..030507f 100755
--- a/tests/tests/push-newpackage
+++ b/tests/tests/push-newpackage
@@ -18,6 +18,17 @@ LANG=C t-dgit push 2>&1 \
| grep 'package appears to be new in this suite' >/dev/null
t-dgit build
+
+git checkout bogus
+
+set +e
+(set -e; t-dgit push --new)
+rc=$?
+set -e
+if [ $rc = 0 ]; then fail "push succeeded when tree mismatch"; fi
+
+git checkout master
+
t-dgit push --new
t-pushed-good master