summaryrefslogtreecommitdiff
path: root/tests/tests/debpolicy-newreject
blob: de01a53b329cbb7d89a75fd3f295e37e093e3cf1 (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
#!/bin/bash
set -e
. tests/lib

export DGIT_DRS_DEBUG=1

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