Skip to content

Commit

Permalink
[integration] fix ssh cmd for macos platform
Browse files Browse the repository at this point in the history
Similar to e2e for darwin platform the ssh command will emulate a local session with `su`
  • Loading branch information
adrianriobo authored and praveenkumar committed Dec 1, 2022
1 parent f8bc245 commit b4134de
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion images/build-integration/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,18 @@ if [[ ${PLATFORM} == 'windows' ]]; then
if [[ ! -z "${BUNDLE_LOCATION+x}" ]] && [[ -n "${BUNDLE_LOCATION}" ]]; then
BINARY_EXEC+="\$env:BUNDLE_PATH='${BUNDLE_LOCATION}'; "
fi
BINARY_EXEC+="./${BINARY} > integration.results"
else
BINARY_EXEC="cd ${EXECUTION_FOLDER}/bin && "
BINARY_EXEC+="PULL_SECRET_PATH=${EXECUTION_FOLDER}/pull-secret "
if [[ ! -z "${BUNDLE_LOCATION+x}" ]] && [[ -n "${BUNDLE_LOCATION}" ]]; then
BINARY_EXEC+="BUNDLE_PATH=${BUNDLE_LOCATION} "
fi
BINARY_EXEC+="./${BINARY} > integration.results"
if ${PLATFORM} == 'macos' ; then
BINARY_EXEC="sudo su - ${TARGET_HOST_USERNAME} -c \"PATH=\$PATH:/usr/local/bin && ${BINARY_EXEC} \""
fi
fi
BINARY_EXEC+="./${BINARY} > integration.results"
# Execute command remote
$SSH "${REMOTE}" "${BINARY_EXEC}"

Expand Down

0 comments on commit b4134de

Please sign in to comment.