File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -56,10 +56,14 @@ endif
5656BATS_IMAGE = batstests:$(GIT_COMMIT_SHORT )
5757KUBECONFIG ?= $(HOME ) /.kube/config
5858
59- # Add `docker run` arguments when not running
60- # in Github Actions / GitLab CI.
59+
60+ TMPDIR ?= "/tmp"
61+
62+ # Add `docker run` arguments when not running in Github Actions / GitLab CI. Set
63+ # TMPDIR to checkout directory (easier for runner setup).
6164DOCKER_RUN_FLAGS :=
6265ifeq ($(CI ) ,)
66+ TMPDIR = "."
6367 DOCKER_RUN_FLAGS += -it
6468endif
6569
8286.PHONY : tests
8387tests : image
8488 echo " KUBECONFIG: $( KUBECONFIG) " && \
85- export _RUNDIR=$$ { TMPDIR:=/tmp} /k8s-dra-driver-gpu-tests-out/bats-tests-$$(date +%s ) && \
89+ export _RUNDIR=$( TMPDIR ) /k8s-dra-driver-gpu-tests-out/bats-tests-$$(date +%s ) && \
8690 mkdir -p " $$ {_RUNDIR}" && stat " $$ {_RUNDIR}" && \
8791 docker run \
8892 --rm \
You can’t perform that action at this time.
0 commit comments