From 262b2a6e16be8abe06edac377094bcbaa84da378 Mon Sep 17 00:00:00 2001 From: Markos Chandras Date: Fri, 16 Mar 2018 12:52:37 +0000 Subject: 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 --- xci/scripts/vm/start-new-vm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xci/scripts') 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 <