Support "make testhost version=local"

This commit is contained in:
Tim Byrne 2020-11-25 22:05:24 -06:00
parent 7997dc9a3d
commit 62a86ecd27
No known key found for this signature in database
GPG Key ID: 14DB4FC2465A4B12
1 changed files with 5 additions and 1 deletions

View File

@ -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 \