From a91729820e16c8b17ec8d4149c5bdab964de021a Mon Sep 17 00:00:00 2001 From: Filippo Squillace Date: Tue, 23 Dec 2014 14:48:22 +0100 Subject: [PATCH] Fix tests --- tests/test_core.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/test_core.sh b/tests/test_core.sh index 5ceb561..c6613d3 100755 --- a/tests/test_core.sh +++ b/tests/test_core.sh @@ -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(){