add exec_on helper

so we don't repeat the remote docker invocation command (complete with
hard-coded port) over and over again.
This commit is contained in:
Matthias Radestock committed 2015-04-22 09:25:42 +01:00
1 parent 3ad186d727
commit a7c9fd272c
8 files changed
+19 -12

No files matched your search

+1 -1
View File
@@ -18,7 +18,7 @@ weave_on $HOST2 launch -password notverysecure $HOST1
weave_on $HOST2 run $C2/24 -t --name=c2 ubuntu
weave_on $HOST1 run $C1/24 -t --name=c1 ubuntu
ok=$(docker -H tcp://$HOST1:2375 exec c1 sh -c "ping -q -c 4 $C2 >&2 && echo ok")
ok=$(exec_on $HOST1 c1 ping -q -c 4 $C2 >&2 && echo ok)
assert "echo $ok" "ok"
end_suite