X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Ftests%2Fpush-newpackage;h=d0f3f35a40d9927af72afb01fd3aa5c729836046;hp=030507f15a6ca171298441c8c938ae5fb3a6a9ca;hb=d45a224aee98c04bf3038dcda9b258ba5abf0d70;hpb=287a7f0fc2a71b5e4df36e9f1ecf9b05d0212a85 diff --git a/tests/tests/push-newpackage b/tests/tests/push-newpackage index 030507f1..d0f3f35a 100755 --- a/tests/tests/push-newpackage +++ b/tests/tests/push-newpackage @@ -2,27 +2,21 @@ set -e . tests/lib -t-archive-none pari-extra -t-git-none -t-worktree 3-1 -v=3-1 -cd $p -git branch -m dgit/sid master -git remote rm dgit +t-prep-newpackage pari-extra 3-1 +cd $p t-refs-same-start t-ref-head -LANG=C t-dgit push 2>&1 \ - | tee /dev/stderr \ - | grep 'package appears to be new in this suite' >/dev/null +t-expect-push-fail 'package appears to be new in this suite' \ +t-dgit push t-dgit build git checkout bogus set +e -(set -e; t-dgit push --new) +(set -e; DGIT_TEST_DEBUG=' ' t-dgit push --new) rc=$? set -e if [ $rc = 0 ]; then fail "push succeeded when tree mismatch"; fi