From: Mohamed Larabi Date: Fri, 4 May 2012 12:52:51 +0000 (+0200) Subject: remove lxc-wait calls X-Git-Tag: tests-5.1-2~1 X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=c27e2966c8ef64f916ae56b23fd9257133d4f8a8;p=tests.git remove lxc-wait calls --- diff --git a/system/lxc-driver.sh b/system/lxc-driver.sh index fa73cad..ae4debd 100755 --- a/system/lxc-driver.sh +++ b/system/lxc-driver.sh @@ -11,7 +11,6 @@ function start_all () { for i in $(lxc-ls -1|sort|uniq); do [ "$(lxc-info -n $i | grep state| awk '{print $2;}' )" != "RUNNING" ] && lxc-start -d -n $i || : - lxc-wait -n $i -s RUNNING done #sense_all @@ -21,10 +20,9 @@ function stop_all () { for i in $(lxc-ls -1|sort|uniq); do [ "$(lxc-info -n $i | grep state| awk '{print $2;}' )" != "STOPPED" ] && lxc-stop -n $i - lxc-wait -n $i -s STOPPED done - sense_all + #sense_all } function sense_lxc () { @@ -37,18 +35,16 @@ function start_lxc () { lxc=$1; shift [ "$(lxc-info -n $lxc | grep state| awk '{print $2;}' )" != "RUNNING" ] && lxc-start -d -n $lxc ||: - lxc-wait -n $lxc -s RUNNING - sense_lxc $lxc + #sense_lxc $lxc } function stop_lxc () { lxc=$1; shift [ "$(lxc-info -n $lxc | grep state| awk '{print $2;}' )" != "STOPPED" ] && lxc-stop -n $lxc - lxc-wait -n $lxc -s STOPPED - sense_lxc $lxc + #sense_lxc $lxc } function restart_all () {