Skip to content

Commit b4134de

Browse files
adrianriobopraveenkumar
authored andcommitted
[integration] fix ssh cmd for macos platform
Similar to e2e for darwin platform the ssh command will emulate a local session with `su`
1 parent f8bc245 commit b4134de

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

images/build-integration/entrypoint.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,14 +82,18 @@ if [[ ${PLATFORM} == 'windows' ]]; then
8282
if [[ ! -z "${BUNDLE_LOCATION+x}" ]] && [[ -n "${BUNDLE_LOCATION}" ]]; then
8383
BINARY_EXEC+="\$env:BUNDLE_PATH='${BUNDLE_LOCATION}'; "
8484
fi
85+
BINARY_EXEC+="./${BINARY} > integration.results"
8586
else
8687
BINARY_EXEC="cd ${EXECUTION_FOLDER}/bin && "
8788
BINARY_EXEC+="PULL_SECRET_PATH=${EXECUTION_FOLDER}/pull-secret "
8889
if [[ ! -z "${BUNDLE_LOCATION+x}" ]] && [[ -n "${BUNDLE_LOCATION}" ]]; then
8990
BINARY_EXEC+="BUNDLE_PATH=${BUNDLE_LOCATION} "
9091
fi
92+
BINARY_EXEC+="./${BINARY} > integration.results"
93+
if ${PLATFORM} == 'macos' ; then
94+
BINARY_EXEC="sudo su - ${TARGET_HOST_USERNAME} -c \"PATH=\$PATH:/usr/local/bin && ${BINARY_EXEC} \""
95+
fi
9196
fi
92-
BINARY_EXEC+="./${BINARY} > integration.results"
9397
# Execute command remote
9498
$SSH "${REMOTE}" "${BINARY_EXEC}"
9599

0 commit comments

Comments
 (0)