14 local wantmsg="$1"; shift
16 git push origin "$@" 2>&1 |tee $tmp/mustfail.txt
20 "0 0") fail "push unexpectedly succeeded: $*" ;;
22 *) fail "tee failed" ;;
24 if ! fgrep "$wantmsg" $tmp/mustfail.txt >/dev/null; then
25 fail "error message not found"
32 tag_signer='-u Senatus'
33 tag_message="$p release $version for $suite ($csuite) [dgit]"
34 tag_name=debian/3-2_dummy1
35 push_spec1="HEAD:refs/dgit/$csuite"
36 push_spec2="refs/tags/$tag_name"
37 push_spec="$push_spec1 $push_spec2"
40 git tag -f $tag_signer -m "$tag_message" $tag_name "$@"
49 mustfail 'missing signature' $push_spec
52 tag_message='something'
54 mustfail 'tag message not in expected format' $push_spec
59 mustfail 'sid != sponge' HEAD:refs/dgit/sponge $push_spec2
61 git push origin $push_spec
65 mustfail 'not replacing previously-pushed version' $push_spec