]> code.ossystems Code Review - openembedded-core.git/commit
masterimage.py: fix issue with calling reboot on masterimage/DUT
authorErik Botö <erik.boto@pelagicore.com>
Mon, 6 Nov 2017 18:13:03 +0000 (10:13 -0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 4 Dec 2017 17:14:25 +0000 (17:14 +0000)
commit6f5c4a8e07f8cdf3f6352e9e85d7376937bb32d2
treee77ce151d700f0c083ef870da2fd0493e6353d2e
parentcb20382d85f5758ac9fb7cd7df085d07005f1337
masterimage.py: fix issue with calling reboot on masterimage/DUT

On systemd systems calling reboot over an ssh connection doesn't
return as expected causing an exception, therefore wrap the call
to reboot in order to avoid this issue.

Also sync the filesystems before rebooting cause otherwise, it will be
done as part of the reboot and could take a very long time and testimage
will fail to access the machine. This issue was observed consistently with
one of our rootfs at Pelagicore.

[YOCTO #11524]

Signed-off-by: Erik Botö <erik.boto@pelagicore.com>
Signed-off-by: Stephano Cetola <stephano.cetola@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Armin Kuster <akuster@mvista.com>
meta/lib/oeqa/controllers/masterimage.py