summaryrefslogtreecommitdiff
path: root/test/librechroot-test.sh
diff options
context:
space:
mode:
authorLuke Shumaker <LukeShu@sbcglobal.net>2013-06-03 21:03:49 -0600
committerLuke Shumaker <LukeShu@sbcglobal.net>2013-06-05 20:01:07 -0600
commitef468d692bee233b37d7853098612c5b2d17423f (patch)
tree5bc06ebc0c618154c74e79ac86bdeacb1f6ccdb9 /test/librechroot-test.sh
parent0615f9f304be0cebc72e5a7bbcb93e8f2220e672 (diff)
unit tests: sudo was unsetting LIBRETOOLS_LIBDIR
Diffstat (limited to 'test/librechroot-test.sh')
-rw-r--r--test/librechroot-test.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/librechroot-test.sh b/test/librechroot-test.sh
index c9fa130..c34af6e 100644
--- a/test/librechroot-test.sh
+++ b/test/librechroot-test.sh
@@ -14,7 +14,7 @@ after() {
}
it_creates_repo_for_new_chroots() {
- sudo librechroot run test -r /repo/repo.db
+ sudo -EH librechroot run test -r /repo/repo.db
}
it_displays_help_as_normal_user() {
@@ -41,7 +41,7 @@ it_displays_help_and_fails_with_0_args() {
}
it_fails_for_unknown_commands() {
- sudo librechroot phony >$tmpdir/stdout 2>$tmpdir/stderr || stat=$?
+ sudo -EH librechroot phony >$tmpdir/stdout 2>$tmpdir/stderr || stat=$?
[[ $stat != 0 ]]
[[ -z "$(cat $tmpdir/stdout)" ]]
@@ -49,7 +49,7 @@ it_fails_for_unknown_commands() {
}
it_fails_for_unknown_flags() {
- sudo librechroot -q >$tmpdir/stdout 2>$tmpdir/stderr || stat=$?
+ sudo -EH librechroot -q >$tmpdir/stdout 2>$tmpdir/stderr || stat=$?
[[ $stat != 0 ]]
[[ -z "$(cat $tmpdir/stdout)" ]]