make test: don't ssh if possible

This commit is contained in:
tv 2016-08-04 21:36:44 +02:00
parent 71a25b1875
commit 048986e09b

View File

@ -130,7 +130,12 @@ $(error bad method: $(method))
endif
endif
test: ssh ?= ssh
ifeq ($(target_user)@$(target_host),$(LOGNAME)@$(HOSTNAME))
test: wrapper = exec
else
test: wrapper = $(ssh) $(target_user)@$(target_host) -p $(target_port)
endif
test: populate
$(ssh) $(target_user)@$(target_host) -p $(target_port) \
$(wrapper) \
$(command) --show-trace -I $(target_path) \
-A config.system.build.toplevel $(target_path)/stockholm