diff --git a/test/090_docker_restart_policy_2_test.sh b/test/090_docker_restart_policy_2_test.sh index f43428d4..63d63cf2 100755 --- a/test/090_docker_restart_policy_2_test.sh +++ b/test/090_docker_restart_policy_2_test.sh @@ -23,8 +23,8 @@ assert_raises "! check_restart $HOST1 weave" assert_raises "! check_restart $HOST1 weaveproxy" assert_raises "! check_restart $HOST1 weaveplugin" -# Relaunch the plugin to prevent the `weave stop` in `end_suite` +# Relaunch to prevent the `weave stop` in `end_suite` # timing out trying to remove the plugin network -weave_on $HOST1 launch-plugin +weave_on $HOST1 launch --no-restart end_suite diff --git a/weave b/weave index 0887b3e2..a5da7089 100755 --- a/weave +++ b/weave @@ -1978,6 +1978,10 @@ EOF echo $PROXY_CONTAINER ;; launch-plugin) + if ! check_running $CONTAINER_NAME 2>/dev/null ; then + echo "ERROR:" $CONTAINER_NAME "container must be running before plugin can be launched" >&2 + exit 1 + fi launch_plugin_if_not_running "$@" echo $PLUGIN_CONTAINER ;;