testbed: Print out results of sysupgrade.

This is first step of better error detection so that
we can know the DUT is in bad state and power-cycle or
request manual intervention.
This commit is contained in:
Ben Greear
2020-05-13 12:17:26 -07:00
parent 992d2d3236
commit 89ac8cfa19

View File

@@ -224,6 +224,9 @@ for ($i = 0; $i<@lines; $i++) {
# TODO: Change this to curl download??
my $ap_out = do_system("../../lanforge/lanforge-scripts/openwrt_ctl.py --scheme serial --tty $serial --action sysupgrade --value \"lanforge\@$ap_gw:tip-$jfile\"");
print ("Sys-upgrade results:\n$ap_out\n");
# TODO: Verify this (and reboot below) worked. DUT can get wedged and in that case it will need
# a power-cycle to continue.
# System should be rebooted at this point.
sleep(10); # Give it some more time