summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-03 13:35:28 +0000
committerDaniel Silverstone <dsilvers@digital-scurf.org>2016-12-03 13:35:28 +0000
commitbdcfcdb811540d61c669c39d2f3233aa15783330 (patch)
treecfc7fa7af3daa8b978dd495b40ac41867090ba86
parent27f0c0959328e0ecd2468940739c9fd1773db3f1 (diff)
downloadgitano-bdcfcdb811540d61c669c39d2f3233aa15783330.tar.gz
Clean up test protocol stuff for ssh vs http
-rw-r--r--Makefile6
-rw-r--r--testing/gitano-test-tool.in2
-rw-r--r--testing/library.yarn2
3 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 4e450c1..2558cc6 100644
--- a/Makefile
+++ b/Makefile
@@ -186,7 +186,11 @@ ifneq ($(YARN_SNAPSHOT),)
YARN_ARGS += --snapshot
endif
-TEST_PROTO ?= SSH
+TEST_PROTO ?= ssh
+
+ifeq ($(filter $(TEST_PROTO),ssh http),)
+$(error TEST_PROTO should be ssh or http)
+endif
basictest: local $(TEST_BINS)
$(YARN) \
diff --git a/testing/gitano-test-tool.in b/testing/gitano-test-tool.in
index 35fe410..e716320 100644
--- a/testing/gitano-test-tool.in
+++ b/testing/gitano-test-tool.in
@@ -275,7 +275,7 @@ function cmd_runcommand_http(user, key, ...)
end
function cmd_runcommand(...)
- if os.getenv("GTT_PROTO") == "SSH" then
+ if os.getenv("GTT_PROTO") == "ssh" then
return cmd_runcommand_ssh(...)
else
return cmd_runcommand_http(...)
diff --git a/testing/library.yarn b/testing/library.yarn
index 023ba09..7c4d990 100644
--- a/testing/library.yarn
+++ b/testing/library.yarn
@@ -92,7 +92,7 @@ rsync manipulation
------------------
IMPLEMENTS ASSUMING rsync is possible
- test "x$TEST_PROTO" = "xSSH"
+ test "x$GTT_PROTO" = "xssh"
IMPLEMENTS WHEN ([a-z][a-z0-9]*) ([a-z][a-z0-9]*) rsync'?s (.*) to (.*)
rsync -I --rsh="$GTT rsh $MATCH_1 $MATCH_2" "$DATADIR/$MATCH_3" "dummy:$MATCH_4/$MATCH_3"