Browse code

Fix test that checks whether insances from previous runs need to be removed

* Fixes bug 919389

Change-Id: I11e0c46426e627448562802e56fca186a5a365ef

Anthony Young authored on 2012/01/21 05:45:32
Showing 1 changed files
... ...
@@ -930,7 +930,7 @@ if [[ "$ENABLED_SERVICES" =~ "n-cpu" ]]; then
930 930
 
931 931
     # Destroy old instances
932 932
     instances=`virsh list --all | grep $INSTANCE_NAME_PREFIX | sed "s/.*\($INSTANCE_NAME_PREFIX[0-9a-fA-F]*\).*/\1/g"`
933
-    if [ ! $instances = "" ]; then
933
+    if [ ! "$instances" = "" ]; then
934 934
         echo $instances | xargs -n1 virsh destroy || true
935 935
         echo $instances | xargs -n1 virsh undefine || true
936 936
     fi