summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2016-08-04 21:36:44 +0200
committertv <tv@krebsco.de>2016-08-04 21:36:44 +0200
commit57012b75159ea75a281f76d52d432d6694eade36 (patch)
tree692273dc27bcfa481675145e06620a38df4dd11b /Makefile
parente2af338d6cf0da76f1f2d06bab60b76bb2b5c063 (diff)
make test: don't ssh if possible
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3857a23..4fa5bc8 100644
--- a/Makefile
+++ b/Makefile
@@ -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