Browse code

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

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