mirror of
https://github.com/fsquillace/junest.git
synced 2026-07-25 03:47:03 +00:00
Fix tests
This commit is contained in:
parent
460a0a595e
commit
a91729820e
1 changed files with 8 additions and 4 deletions
|
|
@ -109,14 +109,16 @@ function test_run_juju_as_user_proot_args(){
|
|||
|
||||
export -f _run_juju_with_proot
|
||||
export -f _run_proot
|
||||
export -f info
|
||||
export -f warn
|
||||
export -f die
|
||||
export PROOT
|
||||
export PROOT_COMPAT
|
||||
ID="/bin/echo 1" bash -ic "_run_juju_with_proot --helps" &> /dev/null
|
||||
is_equal $? 1 || return 1
|
||||
export -n _run_juju_with_proot
|
||||
export -n _run_proot
|
||||
export -n info
|
||||
export -n warn
|
||||
export -n die
|
||||
export -n PROOT
|
||||
export -n PROOT_COMPAT
|
||||
}
|
||||
|
|
@ -135,12 +137,14 @@ function test_run_juju_with_proot_with_compat(){
|
|||
|
||||
export -f _run_juju_with_proot
|
||||
export -f _run_proot
|
||||
export -f info
|
||||
export -f warn
|
||||
export -f die
|
||||
PROOT="/bin/false" PROOT_COMPAT="/bin/false" ID="/bin/echo 1" bash -ic "_run_juju_with_proot --helps" &> /dev/null
|
||||
is_equal $? 1 || return 1
|
||||
export -n _run_juju_with_proot
|
||||
export -n _run_proot
|
||||
export -n info
|
||||
export -n warn
|
||||
export -n die
|
||||
}
|
||||
|
||||
function test_run_juju_with_proot_as_root(){
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue