Skip to content
This repository has been archived by the owner on Nov 1, 2022. It is now read-only.

Commit

Permalink
e2e: Print gitsrv logs if it fails to start
Browse files Browse the repository at this point in the history
  • Loading branch information
2opremio committed Dec 11, 2019
1 parent 0cfe85c commit 3f4b963
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/e2e/lib/install.bash
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,11 @@ function install_git_srv() {
local_port=$(echo "$local_port" | sed 's%.*:\([0-9]*\).*%\1%')
local ssh_cmd="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -i $gen_dir/id_rsa -p $local_port"
# Wait for the git server to be ready
GIT_SSH_COMMAND="${ssh_cmd}" poll_until_true 'gitsrv to be ready' 'git ls-remote ssh://git@localhost/git-server/repos/cluster.git master > /dev/null'
local check_gitsrv_cmd='git ls-remote ssh://git@localhost/git-server/repos/cluster.git master > /dev/null'
GIT_SSH_COMMAND="${ssh_cmd}" poll_until_true 'gitsrv to be ready' "${check_gitsrv_cmd}" || {
kubectl -n "${FLUX_NAMESPACE}" logs deployment/gitsrv
exit 1
}

if [ -n "$external_access_result_var" ]; then
# return the ssh command needed for git, and the PID of the port-forwarding PID into a variable of choice
Expand Down

0 comments on commit 3f4b963

Please sign in to comment.