Only run docker in interactive mode when stdin is a terminal
This commit is contained in:
parent
a9d9e89d0c
commit
44de30374f
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -94,7 +94,11 @@ test:
|
||||||
py.test -v $(testargs); \
|
py.test -v $(testargs); \
|
||||||
else \
|
else \
|
||||||
$(MAKE) -s require-docker && \
|
$(MAKE) -s require-docker && \
|
||||||
docker run --rm -it -v "$(CURDIR):/yadm:ro" $(IMAGE) make test testargs="$(testargs)"; \
|
docker run \
|
||||||
|
--rm -t$(shell test -t 0 && echo i) \
|
||||||
|
-v "$(CURDIR):/yadm:ro" \
|
||||||
|
$(IMAGE) \
|
||||||
|
make test testargs="$(testargs)"; \
|
||||||
fi
|
fi
|
||||||
|
|
||||||
.PHONY: .testyadm
|
.PHONY: .testyadm
|
||||||
|
|
Loading…
Reference in a new issue