xci: scripts: start-new-vm.sh: Fix paths for default XCI test 17/43317/8
authorMarkos Chandras <mchandras@suse.de>
Wed, 27 Sep 2017 14:56:25 +0000 (15:56 +0100)
committerMarkos Chandras <mchandras@suse.de>
Wed, 27 Sep 2017 22:11:57 +0000 (23:11 +0100)
The XCI test is located in ~/releng-xci inside the new VM so we need
to look there for an existing one or for executing it after the default
one has been created and copied to the remote host.

Change-Id: Ieb195293da7832bcb5d29c8a28cc3477205f2e5e
Signed-off-by: Markos Chandras <mchandras@suse.de>
xci/scripts/vm/start-new-vm.sh

index cba1a39..65133ed 100755 (executable)
@@ -191,7 +191,7 @@ set +e
 
 _has_test=true
 echo "Verifying test script exists..."
-$vm_ssh $_ip "bash -c 'stat ~/$(basename ${BASE_PATH})/run_jenkins_test.sh'"
+$vm_ssh $_ip "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
@@ -210,7 +210,7 @@ fi
 
 if ${_has_test}; then
        echo "Running test..."
-       $vm_ssh $_ip "bash ~/$(basename ${BASE_PATH})/run_jenkins_test.sh"
+       $vm_ssh $_ip "bash ~/releng-xci/run_jenkins_test.sh"
        xci_error=$?
 else
        echo "No jenkins test was found. The virtual machine will remain idle!"