diff options
Diffstat (limited to 'test/librechroot-test.sh')
-rw-r--r-- | test/librechroot-test.sh | 6 |
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)" ]] |