[tbot] Testcase example with board reboot

Stefano Babic sbabic at denx.de
Wed Nov 28 16:39:12 UTC 2018


Hi,

is there an example where a testcase foresees a reboot ? Let's say, I
acquire the board (linux), I do something on the board (ok, I update)
and then I reboot again - after reboot I will check again.

Of course, until "reboot" is the standard way. Should I get a new context ?

    with contextlib.ExitStack() as cx:
         if mach is None:
             lh = cx.enter_context(tbot.acquire_lab())
             b = cx.enter_context(tbot.acquire_board(lh))
             lnx = cx.enter_context(tbot.acquire_linux(b))
         else:
             lnx = mach

             ......doing somethin

	lnx.exec0("reboot")

	???


Regards,
Stefano

-- 
=====================================================================
DENX Software Engineering GmbH,      Managing Director: Wolfgang Denk
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: +49-8142-66989-53 Fax: +49-8142-66989-80 Email: sbabic at denx.de
=====================================================================


More information about the tbot mailing list