mirror of
https://github.com/fsquillace/junest.git
synced 2026-08-04 00:32:19 +00:00
Fix issue #35
This commit is contained in:
parent
03e0f483e9
commit
5823e4c553
2 changed files with 8 additions and 1 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue