From: Markos Chandras Date: Fri, 16 Mar 2018 12:52:37 +0000 (+0000) Subject: xci: scripts: start-new-vm.sh: Make DEFAULT_XCI_TEST stricter X-Git-Tag: 6.0.0~105 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=262b2a6e16be8abe06edac377094bcbaa84da378;p=releng-xci.git xci: scripts: start-new-vm.sh: Make DEFAULT_XCI_TEST stricter The DEFAULT_XCI_TEST value wasn't checked and it could actually contain anything leading to all sort of failures so we need to check it against well known values. Change-Id: Ib12c944adebfbcb3097b42af98d2bacefbd8374c Signed-off-by: Markos Chandras --- diff --git a/xci/scripts/vm/start-new-vm.sh b/xci/scripts/vm/start-new-vm.sh index bb2b3351..6e5c8194 100755 --- a/xci/scripts/vm/start-new-vm.sh +++ b/xci/scripts/vm/start-new-vm.sh @@ -357,7 +357,7 @@ echo "Verifying test script exists..." $vm_ssh ${VM_NAME} "bash -c 'stat ~/releng-xci/run_jenkins_test.sh'" if [[ $? != 0 ]]; then echo "Failed to find a 'run_jenkins_test.sh' script..." - if ${DEFAULT_XCI_TEST}; then + if [[ ${DEFAULT_XCI_TEST} == true ]]; then echo "Creating a default test case to run xci-deploy.sh" cat > ${BASE_PATH}/run_jenkins_test.sh <