[tbot] [DENX] tbot: board hangs if no autoload

Harald Seiler hws at denx.de
Thu Nov 15 09:28:13 UTC 2018


On Thu, 2018-11-15 at 10:23 +0100, Lukasz Majewski wrote:
> On Thu, 15 Nov 2018 10:19:17 +0100
> Harald Seiler <hws at denx.de> wrote:
> 
> > On Thu, 2018-11-15 at 10:10 +0100, Stefano Babic wrote:
> > > Hi Harald,
> > > 
> > > On 15/11/18 09:36, Harald Seiler wrote:  
> > > > Hi Stefano!
> > > > 
> > > > Yes, TBot waits for an autoboot prompt.  You can disable this by
> > > > setting `autoboot_prompt` in your UBootMachine to the U-Boot
> > > > prompt.
> > > > 
> > > > 	class MyUBoot(board.UBootMachine):
> > > > 	    prompt = "=> "
> > > > 	    autoboot_prompt = "=> "
> > > > 
> > > > I know this is more of a hack  
> > > 
> > > Yes, because it is not a fix property of the board. It depends if
> > > autoload is active and bootcmd is set on the board. The "mira"
> > > board has not "bootcmd" set in default environment, and behavior is
> > > different just after setting bootcmd.  
> > 
> > Hmm, good point, I will think about it ...
> > 
> > >   
> > > > and I will add a proper way to do this in
> > > > a future release  
> > > 
> > > Nice !
> > >   
> > > > (keep an eye on the CHANGELOG, there will be a lot of
> > > > small convenience features like this in the next versions!)  
> > > 
> > > Do we have a repo for testcases with the new format ? I really
> > > appreciate that new tbot has a clean split between software (tbot),
> > > setup (boards and lab) and testcases. We have repos for the first
> > > two cases, I cannot find a set of common tc. I mean, tc that are
> > > already converted for @tbot.testcase - if not, I would start to
> > > write myself, but I do not want to reinvent the wheel (and of
> > > course, I will do more mistakes..)  
> > 
> > That is what my `tbot-denx` repo is supposed to be (DENX-Internal
> > only):
> > 
> > 	https://gitlab.denx.de/HaraldSeiler/tbot-denx
> > 
> > However, it doesn't contain any testcases yet. 
> 
> Is there a way to convert (or directly re-use) Heiko's test cases?

Unfortunately not, there is absolutely no compatibility between the two
versions ... So it needs a human to do it.

I guess, at the moment I am in the best position to do so, I just need
input about which testcases have the highest priority to you.

> > Additions via
> > Pull-Request are very welcome (board configs as well, please!).  I
> > have some unpublished changes to that repository though, which will
> > be published with the new release tomorrow.  If you wait until after
> > that with writing testcases, you can spare yourself from merge
> > conflicts ...
> > 
> > > Thanks !
> > > 
> > > Stefano  
> Best regards,
> 
> Lukasz Majewski

-- 
Harald

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



More information about the tbot mailing list