use grep in /sys to verify ethwe is up in tests

Closes #707. `ip link show` seems to "lag" the real state. In tests
checking the physical link state is good enough.
This commit is contained in:
Paul Bellamy committed 2015-05-20 13:36:36 +01:00
1 parent f642db0462
commit eeaa6c9e2c
4 files changed
+5 -4

No files matched your search

+2 -2
View File
@@ -10,9 +10,9 @@ run_on $HOST1 sudo ./weave --local launch -iprange 10.2.5.0/24
assert_raises "docker_on $HOST1 ps | grep weave"
run_on $HOST1 sudo ./weave --local run 10.2.6.5/24 -ti --name=c1 gliderlabs/alpine /bin/sh
assert_raises "exec_on $HOST1 c1 ip link show ethwe"
assert_raises "exec_on $HOST1 c1 $CHECK_ETHWE_UP"
run_on $HOST1 sudo ./weave --local run -ti --name=c2 gliderlabs/alpine /bin/sh
assert_raises "exec_on $HOST1 c2 ifconfig | grep ethwe"
assert_raises "exec_on $HOST1 c2 $CHECK_ETHWE_UP"
end_suite