reduce smoke test noise
This commit is contained in:
1 parent
a8b8a0948f
commit
cc1a5548af
2 files changed
+5
-5
No files matched your search
@@ -3,7 +3,7 @@
|
|||||||
. ./config.sh
|
. ./config.sh
|
||||||
|
|
||||||
build_image() {
|
build_image() {
|
||||||
docker_on $HOST1 build -t $1 - <<- EOF
|
docker_on $HOST1 build -t $1 >/dev/null - <<- EOF
|
||||||
FROM $SMALL_IMAGE
|
FROM $SMALL_IMAGE
|
||||||
ENTRYPOINT $2
|
ENTRYPOINT $2
|
||||||
CMD $3
|
CMD $3
|
||||||
|
|||||||
+4
-4
@@ -70,14 +70,14 @@ greenly() {
|
|||||||
run_on() {
|
run_on() {
|
||||||
host=$1
|
host=$1
|
||||||
shift 1
|
shift 1
|
||||||
greyly echo "Running on $host: $@" >&2
|
[ -z "$DEBUG" ] || greyly echo "Running on $host: $@" >&2
|
||||||
remote $host $SSH $host "$@"
|
remote $host $SSH $host "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
docker_on() {
|
docker_on() {
|
||||||
host=$1
|
host=$1
|
||||||
shift 1
|
shift 1
|
||||||
greyly echo "Docker on $host:$DOCKER_PORT: $@" >&2
|
[ -z "$DEBUG" ] || greyly echo "Docker on $host:$DOCKER_PORT: $@" >&2
|
||||||
docker -H tcp://$host:$DOCKER_PORT "$@"
|
docker -H tcp://$host:$DOCKER_PORT "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -88,7 +88,7 @@ proxy() {
|
|||||||
weave_on() {
|
weave_on() {
|
||||||
host=$1
|
host=$1
|
||||||
shift 1
|
shift 1
|
||||||
greyly echo "Weave on $host:$DOCKER_PORT: $@" >&2
|
[ -z "$DEBUG" ] || greyly echo "Weave on $host:$DOCKER_PORT: $@" >&2
|
||||||
DOCKER_HOST=tcp://$host:$DOCKER_PORT $WEAVE "$@"
|
DOCKER_HOST=tcp://$host:$DOCKER_PORT $WEAVE "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -145,7 +145,7 @@ assert_no_dns_record() {
|
|||||||
|
|
||||||
start_suite() {
|
start_suite() {
|
||||||
for host in $HOST1 $HOST2; do
|
for host in $HOST1 $HOST2; do
|
||||||
echo "Cleaning up on $host: removing all containers and resetting weave"
|
[ -z "$DEBUG" ] || echo "Cleaning up on $host: removing all containers and resetting weave"
|
||||||
containers=$(docker_on $host ps -aq 2>/dev/null)
|
containers=$(docker_on $host ps -aq 2>/dev/null)
|
||||||
[ -n "$containers" ] && docker_on $host rm -f $containers >/dev/null 2>&1
|
[ -n "$containers" ] && docker_on $host rm -f $containers >/dev/null 2>&1
|
||||||
weave_on $host reset 2>/dev/null
|
weave_on $host reset 2>/dev/null
|
||||||
|
|||||||
Reference in new issue
Block a user