summaryrefslogtreecommitdiff
path: root/tests/tests/debpolicy-newreject
blob: 1574669a618868f950bc9c2cc993ce852c9dc8c4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/bin/bash
set -e
. tests/lib

t-debpolicy
t-prep-newpackage pari-extra 3.1

cd $p


echo FORBIDDEN >debian/some-file
git add debian/some-file
git commit -m 'Commit a forbidden thing'

bad=`git rev-parse HEAD:debian/some-file`
t-policy-admin taint --global "$bad" "forbidden for testing"

t-dgit build
t-expect-fail 'forbidden for testing' \
t-dgit push --new

echo xxx up to here