blob: 813a5e219e9abb0232660e571dcd6e382d9a0684 (
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
|
#!/bin/bash
set -e
. tests/lib
t-debpolicy
t-prep-newpackage example 1.0
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
git reset --hard HEAD~
t-dgit build
t-dgit push --new
t-policy-periodic
echo xxx up to here
|