summaryrefslogtreecommitdiffstats
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
commit048986e09bfe9195ccd434c4c143d374db5488d2 (patch)
treeace38288ad1d9bfd704998cf455dfb15516430cb
parent71a25b18755ea229be17ca01003a68471ff72760 (diff)
make test: don't ssh if possible
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3857a2390..4fa5bc885 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