1
0
Fork 0
mirror of synced 2024-11-04 09:08:56 -05:00

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

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 \