CreatorDev / boardfarm

Test framework for OpenWrt based devices
BSD 3-Clause Clear License
0 stars 4 forks source link

Tests waste 180seconds waiting for boot #38

Open Ham22 opened 7 years ago

Ham22 commented 7 years ago

Currently once programming is finished we reboot the device and wait 180 seconds.

Instead we could just wait for a few seconds (to avoid accidentally interrupting boot loader) and then sit in a loop waiting for the console to appear. This shouldn't take more than 40 seconds. If it does timeout exception should be raised.

nikhil-zinjurde-imgtec commented 7 years ago

Actually, it would be good to get the ota_update and ota_verify script in source control. Currently, boardfarm CI does some "magic" from Jenkinsfile with the help of ota_update.sh and ota_verify.sh which is not visible to everyone and therefore makes it difficult to understand if something gets broken around the update mechanism.

The scripts are not too complicated, so can be expanded in the Jenkinsfile and may be optimised to reduce the flashing time which is included in this 180s sleep.

On another note, following the evaluation of LAVA framework, we may be able to overhaul the update mechanism to make it more robust and responsive