Skip to content

Commit 324262e

Browse files
committed
fix kubectl get nodes, echo KUBECONFIG make var
Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
1 parent 87d2861 commit 324262e

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

tests/bats/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,7 @@ image:
4343
# cmdline args).
4444
.PHONY: tests
4545
tests: image
46+
echo "KUBECONFIG: $(KUBECONFIG)" && \
4647
mkdir -p tests-out && \
4748
export _RUNDIR=$$(mktemp -p tests-out -d -t bats-tests-$$(date +%s)-XXXXX) && \
4849
docker run \
@@ -60,9 +61,9 @@ tests: image
6061
-u $(shell id -u ${USER}):$(shell id -g ${USER}) \
6162
--entrypoint "/bin/bash"\
6263
$(BATS_IMAGE) \
63-
-c "set -x; cd /cwd; \
64+
-c "set -ex; cd /cwd; \
6465
echo 'kubeconfig head:'; cat /kubeconfig | head -n2; \
65-
echo 'kubectl get nodes' || exit 1; \
66+
kubectl get nodes; \
6667
echo 'Running k8s cluster cleanup (invasive)... '; \
6768
bash tests/bats/cleanup-from-previous-run.sh &> $${_RUNDIR}/cleanup.outerr || \
6869
(echo 'Cleanup failed:'; cat $${_RUNDIR}/cleanup.outerr); \

0 commit comments

Comments
 (0)