Files
weave/test/400_weave_local_test.sh
T
Matthias Radestock 22c04bfc24 don't use $(exec_on ...)
since that will cause the test to exit on failure
2015-04-22 20:09:34 +01:00

20 lines
411 B
Bash
Executable File

#!/bin/bash
. ./config.sh
start_suite "Run weave with --local"
run_on $HOST1 sudo ./weave --local reset
run_on $HOST1 sudo ./weave --local launch
assert_raises "docker_on $HOST1 ps | grep weave" 0
docker_on $HOST1 rm -f c1 || true
run_on $HOST1 sudo ./weave --local run 10.2.6.5/24 -ti --name=c1 ubuntu
assert_raises "exec_on $HOST1 c1 ifconfig | grep ethwe"
docker_on $HOST1 rm -f c1 || true
end_suite