Skip to content

Commit c80485b

Browse files
committed
Makefile: cleanup
Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
1 parent 3f2fee8 commit c80485b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/bats/Makefile

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@ image:
6868
# suite/file 'setup' in bats, but we'd lose output on success). During dev, you
6969
# may want to add --show-output-of-passing-tests (and read bats docs for other
7070
# cmdline args).
71+
#
72+
# In CI, this target is executed containerized (and uses docker-in-docker).
73+
# $(KUBECONFIG) (a mount source) must be a path on the host.
7174
.PHONY: tests
7275
tests: image
7376
echo "KUBECONFIG: $(KUBECONFIG)" && \
@@ -90,7 +93,7 @@ tests: image
9093
--entrypoint "/bin/bash"\
9194
$(BATS_IMAGE) \
9295
-c "set -ex; cd /cwd; \
93-
echo 'kubeconfig head:'; cat /kubeconfig | head -n2; \
96+
cat /kubeconfig | head -n2; \
9497
kubectl get nodes; \
9598
echo 'Running k8s cluster cleanup (invasive)... '; \
9699
bash tests/bats/cleanup-from-previous-run.sh 2>&1 | tee -a $${_RUNDIR}/cleanup.outerr; \

0 commit comments

Comments
 (0)