From: tierno Date: Fri, 31 May 2019 13:41:31 +0000 (+0000) Subject: modifify clear-all script test to destroy models X-Git-Tag: v6.0.0~19 X-Git-Url: https://osm.etsi.org/gitweb/?a=commitdiff_plain;h=3b438be5879938a06d0e7591c33e50136afaf956;p=osm%2FNBI.git modifify clear-all script test to destroy models Change-Id: I0ebd41352df29c221f3b1c5dbd26299a8b4959f2 Signed-off-by: tierno --- diff --git a/osm_nbi/tests/clear-all.sh b/osm_nbi/tests/clear-all.sh index 4bcd7f0..75599e5 100755 --- a/osm_nbi/tests/clear-all.sh +++ b/osm_nbi/tests/clear-all.sh @@ -104,6 +104,12 @@ fi if [ -n "$OSMNBI_CLEAN_VCA" ] then - juju destroy-model -y default - juju add-model default + for juju_model in `juju models | grep lxd | grep -v controller | grep -v default | awk '{print$1}'` + do + echo + echo juju destroy-model $juju_model + juju destroy-model -y $juju_model + done + # juju destroy-model -y default + # juju add-model default fi