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

+1 -1
View File
@@ -10,6 +10,6 @@ if (docker_on $HOST1 images $BASE_IMAGE | grep $BASE_IMAGE); then
docker_on $HOST1 rmi $BASE_IMAGE
fi
assert_raises "docker_proxy_on $HOST1 run -e 'WEAVE_CIDR=10.2.1.1/24' $BASE_IMAGE ip link show ethwe | grep 'state UP'"
assert_raises "docker_proxy_on $HOST1 run -e 'WEAVE_CIDR=10.2.1.1/24' $BASE_IMAGE $CHECK_ETHWE_UP"
end_suite