Support "make testhost version=local"
This commit is contained in:
parent
7997dc9a3d
commit
62a86ecd27
1 changed files with 5 additions and 1 deletions
6
Makefile
6
Makefile
|
@ -105,7 +105,11 @@ test:
|
|||
testhost: version ?= HEAD
|
||||
testhost: require-docker
|
||||
@rm -rf /tmp/testhost
|
||||
@git show $(version):yadm > /tmp/testhost
|
||||
@if [ "$(version)" = "local" ]; then \
|
||||
cp -f yadm /tmp/testhost; \
|
||||
else \
|
||||
git show $(version):yadm > /tmp/testhost; \
|
||||
fi
|
||||
@chmod a+x /tmp/testhost
|
||||
@echo Starting testhost version=\"$(version)\"
|
||||
@docker run \
|
||||
|
|
Loading…
Reference in a new issue