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/remove-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/remove-1.sh')
-rwxr-xr-xtests/remove-1.sh3
1 files changed, 1 insertions, 2 deletions
diff --git a/tests/remove-1.sh b/tests/remove-1.sh
index 2ebcda3..20f34fd 100755
--- a/tests/remove-1.sh
+++ b/tests/remove-1.sh
@@ -2,7 +2,6 @@
# make sure we catch openat with relative path
[ "${at_xfail}" = "yes" ] && exit 77 # see trace-0
-export SANDBOX_LOG=$PWD/sb.log
adddeny "${PWD}"
remove-0 -1 f
-test -e sb.log
+test -e sandbox.log