[Fusionforge-commits] r13658 - trunk/tests/lxc

Christian Bayle cbayle at fusionforge.org
Thu Jun 30 17:27:09 CEST 2011


Author: cbayle
Date: 2011-06-30 17:27:09 +0200 (Thu, 30 Jun 2011)
New Revision: 13658

Modified:
   trunk/tests/lxc/start
Log:
Better check


Modified: trunk/tests/lxc/start
===================================================================
--- trunk/tests/lxc/start	2011-06-30 15:27:02 UTC (rev 13657)
+++ trunk/tests/lxc/start	2011-06-30 15:27:09 UTC (rev 13658)
@@ -8,8 +8,16 @@
 CIDR=$3
 IPGW=$4
 
-[ ! -z "$VMENGINE" ] || exit 1
-[ ! -z "$TEMPLATE" ] || exit 2
+if [ -z "$VMENGINE" ]
+then
+	echo "ERROR: VMENGINE not set" 
+	exit 1
+fi
+if [ -z "$TEMPLATE" ]
+then
+	echo "ERROR: TEMPLATE not set"
+	exit 2
+fi
 
 if [ ! -e /usr/lib/lxc/templates/lxc-$TEMPLATE ]
 then 




More information about the Fusionforge-commits mailing list