Gentoo Archives: gentoo-commits

From: Mike Frysinger <vapier@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/sandbox:master commit in: tests/
Date: Sat, 23 Jun 2012 21:27:15
Message-Id: 1340486765.99a9e43c31445464271502e60e99ed6e16a35566.vapier@gentoo
1 commit: 99a9e43c31445464271502e60e99ed6e16a35566
2 Author: Mike Frysinger <vapier <AT> gentoo <DOT> org>
3 AuthorDate: Mon Jun 18 01:26:31 2012 +0000
4 Commit: Mike Frysinger <vapier <AT> gentoo <DOT> org>
5 CommitDate: Sat Jun 23 21:26:05 2012 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/sandbox.git;a=commit;h=99a9e43c
7
8 tests: move disabling of sandbox verbose to common init
9
10 Since none of our tests care about the verbose output, move the disable
11 to a common location so we don't have to do it on a more fine grained
12 basis.
13
14 Signed-off-by: Mike Frysinger <vapier <AT> gentoo.org>
15
16 ---
17 tests/atlocal.in | 2 ++
18 tests/chmod-1.sh | 1 -
19 tests/chown-1.sh | 1 -
20 tests/fchmodat-1.sh | 1 -
21 tests/fchownat-2.sh | 1 -
22 5 files changed, 2 insertions(+), 4 deletions(-)
23
24 diff --git a/tests/atlocal.in b/tests/atlocal.in
25 index 4cabcff..1addcf0 100644
26 --- a/tests/atlocal.in
27 +++ b/tests/atlocal.in
28 @@ -17,3 +17,5 @@ export SANDBOX_PREDICT=${SANDBOX_PREDICT%:/}
29 if [ "${AUTOTEST_PATH}" = "tests" ] ; then
30 AUTOTEST_PATH="src:tests"
31 fi
32 +
33 +export SANDBOX_VERBOSE=0
34
35 diff --git a/tests/chmod-1.sh b/tests/chmod-1.sh
36 index 89b57fe..f857eac 100755
37 --- a/tests/chmod-1.sh
38 +++ b/tests/chmod-1.sh
39 @@ -17,6 +17,5 @@ chmod-0 0 link 0666 || exit 1
40 # this *should* trigger a sandbox violation
41 adddeny $PWD/deny
42 export SANDBOX_LOG=$PWD/sb.log
43 -unset SANDBOX_VERBOSE
44 chmod-0 -1 link 0666 || exit 1
45 test -s sb.log
46
47 diff --git a/tests/chown-1.sh b/tests/chown-1.sh
48 index ef4de0e..4a4b778 100755
49 --- a/tests/chown-1.sh
50 +++ b/tests/chown-1.sh
51 @@ -17,6 +17,5 @@ chown-0 0 link ${SB_UID} ${SB_GID} || exit 1
52 # this *should* trigger a sandbox violation
53 adddeny $PWD/deny
54 export SANDBOX_LOG=$PWD/sb.log
55 -unset SANDBOX_VERBOSE
56 chown-0 -1 link ${SB_UID} ${SB_GID} || exit 1
57 test -s sb.log
58
59 diff --git a/tests/fchmodat-1.sh b/tests/fchmodat-1.sh
60 index 5db4365..570a2bf 100755
61 --- a/tests/fchmodat-1.sh
62 +++ b/tests/fchmodat-1.sh
63 @@ -17,6 +17,5 @@ fchmodat-0 0 AT_FDCWD link 0666 0 || exit 1
64 # this *should* trigger a sandbox violation
65 adddeny $PWD/deny
66 export SANDBOX_LOG=$PWD/sb.log
67 -unset SANDBOX_VERBOSE
68 fchmodat-0 -1 AT_FDCWD link 0666 0 || exit 1
69 test -s sb.log
70
71 diff --git a/tests/fchownat-2.sh b/tests/fchownat-2.sh
72 index 9fd68f0..5c67616 100755
73 --- a/tests/fchownat-2.sh
74 +++ b/tests/fchownat-2.sh
75 @@ -17,6 +17,5 @@ fchownat-0 0 AT_FDCWD link ${SB_UID} ${SB_GID} 0 || exit 1
76 # this *should* trigger a sandbox violation
77 adddeny $PWD/deny
78 export SANDBOX_LOG=$PWD/sb.log
79 -unset SANDBOX_VERBOSE
80 fchownat-0 -1 AT_FDCWD link ${SB_UID} ${SB_GID} 0 || exit 1
81 test -s sb.log