This commit is contained in:
Filippo Squillace 2014-12-15 21:22:34 +01:00
parent 03e0f483e9
commit 5823e4c553
2 changed files with 8 additions and 1 deletions

View file

@ -137,7 +137,7 @@ function setup_from_file_juju(){
[ ! -e ${imagefile} ] && die "Error: The JuJu image file ${imagefile} does not exist"
info "Installing JuJu from ${imagefile}..."
_setup_juju ${ORIGIN_WD}/${imagefile}
_setup_juju ${imagefile}
builtin cd $ORIGIN_WD
}

View file

@ -69,6 +69,13 @@ function test_setup_from_file_juju(){
is_equal $? 1 || return 1
}
function test_setup_from_file_juju_with_absolute_path(){
touch file
tar -czvf juju-${ARCH}.tar.gz file 1> /dev/null
setup_from_file_juju ${ORIGIN_WD}/juju-${ARCH}.tar.gz &> /dev/null
[ -e $JUJU_HOME/file ] || return 1
[ -e $JUJU_HOME/run/lock ] || return 1
}
function test_run_juju_as_root(){
install_mini_juju