This is quite hilarious... $BASE_IMAGE is not defined in config.sh. So running this test would actually attempt to run something like docker -H=... run -e WEAVE_CIDR=10.2.1.4/24 grep ^1$ /sys/class/net/ethwe/carrier i.e. it would try to run the 'grep' image. So why does this not fail all the time? 1) 610_*.sh defines $BASE_IMAGE. 2) 620_*.sh builds a 'grep' image. If either of these tests are included in the same test run before 650_*.sh, then the latter will succeed. Throw in our fabulous CircleCI scheduler, which distributes tests according to their execution time, and you end up with sporadic failures. Fixes #938.
14 lines
318 B
Bash
Executable File
14 lines
318 B
Bash
Executable File
#! /bin/bash
|
|
|
|
. ./config.sh
|
|
|
|
start_suite "Configure the docker daemon for the proxy"
|
|
|
|
weave_on $HOST1 launch-proxy
|
|
|
|
CMD="run -e WEAVE_CIDR=10.2.1.4/24 $SMALL_IMAGE $CHECK_ETHWE_UP"
|
|
assert_raises "eval '$(weave_on $HOST1 proxy-env)' ; docker $CMD"
|
|
assert_raises "docker $(weave_on $HOST1 proxy-config) $CMD"
|
|
|
|
end_suite
|