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