Skip to content

Commit a1a1027

Browse files
committed
makefile target: fix sub shell invocation, increase debuggability
Signed-off-by: Dr. Jan-Philip Gehrcke <[email protected]>
1 parent 783f59d commit a1a1027

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/bats/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ image:
4444
.PHONY: tests
4545
tests: image
4646
@mkdir -p tests-out && \
47-
export _RUNDIR=$$(shell mktemp -p tests-out -d -t bats-tests-$$(date +%s)-XXXXX) && \
47+
export _RUNDIR=$$(mktemp -p tests-out -d -t bats-tests-$$(date +%s)-XXXXX) && \
4848
docker run \
4949
--rm \
5050
-v /tmp:/tmp \
@@ -60,7 +60,7 @@ tests: image
6060
-u $(shell id -u ${USER}):$(shell id -g ${USER}) \
6161
--entrypoint "/bin/bash"\
6262
$(BATS_IMAGE) \
63-
-c "cd /cwd; \
63+
-c "set -x; cd /cwd; \
6464
echo "kubeconfig head:"; cat /kubeconfig | head -n2; \
6565
echo 'kubectl get nodes' || exit 1; \
6666
echo 'Running k8s cluster cleanup (invasive)... '; \

0 commit comments

Comments
 (0)