chiark / gitweb /
Test mismatch during push
authorIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 Aug 2014 17:02:13 +0000 (18:02 +0100)
committerIan Jackson <ijackson@chiark.greenend.org.uk>
Sun, 3 Aug 2014 17:02:13 +0000 (18:02 +0100)
tests/tests/push-newpackage
tests/worktrees/pari-extra_3-1.tar

index eea5685..030507f 100755 (executable)
@@ -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
index 115a795..81a6a54 100644 (file)
Binary files a/tests/worktrees/pari-extra_3-1.tar and b/tests/worktrees/pari-extra_3-1.tar differ