Skip to content

Commit

Permalink
Debugging
Browse files Browse the repository at this point in the history
Signed-off-by: Marc Khouzam <marc.khouzam@montreal.ca>
  • Loading branch information
marckhouzam committed Nov 18, 2019
1 parent cbfff2c commit bf5e1ad
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/acceptance.sh
Original file line number Diff line number Diff line change
Expand Up @@ -131,5 +131,8 @@ if [[ ! -d ${ROBOT_VENV_DIR} ]]; then
pip install ${ROBOT_PY_REQUIRES}
fi

export ROBOT_DEBUG_LEVEL=2
scripts/completion-tests/test-completion.sh
exit
# Run Robot Framework, output
robot --outputdir=${ROBOT_OUTPUT_DIR} ${SUITES_TO_RUN}
5 changes: 5 additions & 0 deletions scripts/completion-tests/completionTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,12 @@

source ${COMP_DIR}/lib/completionTests-base.sh

echo uname -a
uname -a
export PATH=${COMP_DIR}/bin:$PATH
which helm
ls -l $(which helm)
file $(which helm)

# Don't use the new source <() form as it does not work with bash v3
source /dev/stdin <<- EOF
Expand Down
3 changes: 3 additions & 0 deletions scripts/completion-tests/test-completion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ EOF
chmod a+x ${COMP_DIR}/bin/kubectl
cat ${COMP_DIR}/bin/kubectl

bash -c "source ${COMP_SCRIPT}"

# Now run all tests, even if there is a failure.
# But remember if there was any failure to report it at the end.
set +e
Expand All @@ -115,6 +117,7 @@ docker build -t ${BASH4_IMAGE} - <<- EOF
RUN apk update && apk add bash-completion
EOF
docker run --rm \
-v /var/run/docker.sock:/var/run/docker.sock \
-v ${COMP_DIR}:${COMP_DIR} \
-e ROBOT_HELM_V3=${ROBOT_HELM_V3} \
-e ROBOT_DEBUG_LEVEL=${ROBOT_DEBUG_LEVEL} \
Expand Down

0 comments on commit bf5e1ad

Please sign in to comment.