diff options
author | Markos Chandras <mchandras@suse.de> | 2018-03-16 12:52:37 +0000 |
---|---|---|
committer | Fatih Degirmenci <fdegir@gmail.com> | 2018-03-17 08:25:37 +0000 |
commit | 262b2a6e16be8abe06edac377094bcbaa84da378 (patch) | |
tree | 615bcdeaffe03d703b5e26f0831e1897946337e8 /xci/scripts/vm | |
parent | 6c9da781da57420edf4f2a4f823c9d413ea1f516 (diff) |
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 <mchandras@suse.de>
Diffstat (limited to 'xci/scripts/vm')
-rwxr-xr-x | xci/scripts/vm/start-new-vm.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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 <<EOF #!/bin/bash |