File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -94,18 +94,25 @@ while (( ${index} <= ${max_connection_attempts} )); do
94
94
done
95
95
96
96
# Create $IMAGEBUILDER_TEST_DIR directory and upload tests there
97
+ echo " Copying tests to the tester instance..."
98
+ ssh -i " ${PRIVATE_SSH_KEY} " \
99
+ -o UserKnownHostsFile=" ${TEMPDIR} /known_hosts" \
100
+ -o StrictHostKeyChecking=no \
101
+ " ${USER} @${IP} " \
102
+ " /bin/bash -e -c 'mkdir -p " ${IMAGEBUILDER_TEST_DIR} " '"
97
103
scp -r \
98
104
-i " ${PRIVATE_SSH_KEY} " \
99
105
-o UserKnownHostsFile=" ${TEMPDIR} /known_hosts" \
100
106
-o StrictHostKeyChecking=no \
101
107
" ${TESTS_DIR} " " ${USER} @${IP} :${IMAGEBUILDER_TEST_DIR} /"
102
108
103
109
# Run tests
110
+ echo " Running tests in tester instance..."
104
111
ssh -i " ${PRIVATE_SSH_KEY} " \
105
112
-o UserKnownHostsFile=" ${TEMPDIR} /known_hosts" \
106
113
-o StrictHostKeyChecking=no \
107
114
" ${USER} @${IP} " \
108
- " /bin/bash -eu -c 'chmod +x ${IMAGEBUILDER_TEST_DIR} /run-tests-on-instance.sh && PACKER_SSH_USERNAME=${PACKER_SSH_USERNAME} SOLUTION_NAME=${SOLUTION_NAME} ${IMAGEBUILDER_TEST_DIR} /run-tests-on-instance.sh'" \
115
+ " /bin/bash -eu -c 'chmod +x ${IMAGEBUILDER_TEST_DIR} /tests/ run-tests-on-instance.sh && PACKER_SSH_USERNAME=${PACKER_SSH_USERNAME} SOLUTION_NAME=${SOLUTION_NAME} ${IMAGEBUILDER_TEST_DIR} /tests /run-tests-on-instance.sh'" \
109
116
&& lcstatus=$? || lcstatus=$?
110
117
111
118
echo " --> Deleting the temporary instance (${INSTANCE} ) ..."
You can’t perform that action at this time.
0 commit comments