chiark / gitweb /
5d23faa8312cfaeba869a5ea7d50a57da1aa8fb5
[dgit.git] / tests / tests / push-newpackage
1 #!/bin/bash
2 set -e
3 . tests/lib
4
5 t-prep-newpackage pari-extra 3-1
6
7 cd $p
8 t-refs-same-start
9 t-ref-head
10
11 LANG=C t-dgit push 2>&1 \
12         | tee /dev/stderr \
13         | grep 'package appears to be new in this suite' >/dev/null
14
15 t-dgit build
16
17 git checkout bogus
18
19 set +e
20 (set -e; DGIT_TEST_DEBUG=' ' t-dgit push --new)
21 rc=$?
22 set -e
23 if [ $rc = 0 ]; then fail "push succeeded when tree mismatch"; fi
24
25 git checkout master
26
27 t-dgit push --new
28
29 t-pushed-good master
30
31 echo ok.