Add wait_for_attached

This commit is contained in:
Martynas Pumputis committed 2016-05-12 12:25:59 +01:00
1 parent 671ed724d5
commit 02d9c090ed
5 files changed
+30 -40

No files matched your search

+2 -2
View File
@@ -16,10 +16,10 @@ weave_local_on $HOST1 launch --ipalloc-range 10.2.5.0/24
assert_raises "docker_on $HOST1 ps | grep weave"
weave_local_on $HOST1 run 10.2.6.5/24 -ti --name=c1 $SMALL_IMAGE /bin/sh
assert_raises "exec_on $HOST1 c1 $CHECK_ETHWE_UP"
wait_for_attached $HOST1 c1
weave_local_on $HOST1 run -ti --name=c2 $SMALL_IMAGE /bin/sh
assert_raises "exec_on $HOST1 c2 $CHECK_ETHWE_UP"
wait_for_attached $HOST1 c2
assert "weave_local_on $HOST1 ps | wc -l" 3