Skip to content

Commit

Permalink
Only run docker in interactive mode when stdin is a terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
erijo committed Dec 30, 2020
1 parent a9d9e89 commit 44de303
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ test:
py.test -v $(testargs); \
else \
$(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

.PHONY: .testyadm
Expand Down

0 comments on commit 44de303

Please sign in to comment.