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
View File
@@ -30,6 +30,7 @@ HOST2=$(echo $HOSTS | cut -f 2 -d ' ')
SSH=${SSH:-ssh -l vagrant -i ./insecure_private_key -o UserKnownHostsFile=./.ssh_known_hosts -o CheckHostIP=no -o StrictHostKeyChecking=no}
PING="ping -nq -W 1 -c 1"
CHECK_ETHWE_UP="grep ^1$ /sys/class/net/ethwe/carrier"
remote() {
rem=$1