aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-06-17 22:52:19 -0700
committerMike Frysinger <vapier@gentoo.org>2012-06-23 17:28:55 -0400
commit0dff704c8be2126fe54f235889cbe9b4aef09bed (patch)
treed8f66d0456b2b6e1639f83efac67c2e702537820 /tests/chown-1.sh
parenttests: move disabling of sandbox verbose to common init (diff)
downloadsandbox-0dff704c8be2126fe54f235889cbe9b4aef09bed.tar.gz
sandbox-0dff704c8be2126fe54f235889cbe9b4aef09bed.tar.bz2
sandbox-0dff704c8be2126fe54f235889cbe9b4aef09bed.zip
tests: always bubble up exit code regardless of log existence
To simplify testing, do not mung exit(0) to exit(1) just because the log file exists. In many of our tests, we will be doing things to generate a log file, but we explicitly test for exit values ourselves. This is also needed to make log file handling more resilient where we get the name at startup, but don't allow live env changes after that. The changing of the log name to sb.log on the fly no longer works. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Diffstat (limited to 'tests/chown-1.sh')
-rwxr-xr-xtests/chown-1.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/chown-1.sh b/tests/chown-1.sh
index 4a4b778..a7845eb 100755
--- a/tests/chown-1.sh
+++ b/tests/chown-1.sh
@@ -16,6 +16,5 @@ chown-0 0 link ${SB_UID} ${SB_GID} || exit 1
# this *should* trigger a sandbox violation
adddeny $PWD/deny
-export SANDBOX_LOG=$PWD/sb.log
chown-0 -1 link ${SB_UID} ${SB_GID} || exit 1
-test -s sb.log
+test -s sandbox.log