check_ethernet: do not reboot devices with wifi_cred

check_ethernet.hook reboots lab devices that do not have wired
ethernet connection. This puts devices into reboot loop if they
are only on WiFi.

We want to run power autotests from moblab via WiFi, and for
special devices like this we are adding the WiFi credentials in
wifi_cred. So for devices with wifi_cred, we do not run

TEST=check_ethernet.hook passes and no reboot loop

Change-Id: I7d6623a2c6047a3114b702608b42f39710fc4788
Signed-off-by: Mengqi Guo <>
Reviewed-by: Grant Grundler <>
Reviewed-by: Brian Norris <>
1 file changed