extract test functions for "start container via proxy"

This also eliminates the redefinition of 'start_container' by some of
the tests, which causes failures when multiple tests are run with
`run_all.sh`.

Fixes #1294.
This commit is contained in:
Matthias Radestock committed 2015-08-13 15:01:15 +01:00
1 parent 90ed76853c
commit 65578211ef
5 files changed
+27 -25

No files matched your search

+12
View File
@@ -120,6 +120,18 @@ start_container_with_dns() {
weave_on $host run --with-dns "$@" -t $DNS_IMAGE /bin/sh
}
proxy_start_container() {
host=$1
shift 1
proxy docker_on $host run "$@" -dt $SMALL_IMAGE /bin/sh
}
proxy_start_container_with_dns() {
host=$1
shift 1
proxy docker_on $host run "$@" -dt $DNS_IMAGE /bin/sh
}
rm_containers() {
host=$1
shift