[tbot] How to debug acquire_linux

Stefano Babic sbabic at denx.de
Fri Nov 23 09:16:49 UTC 2018

On 23/11/18 10:08, Wolfgang Denk wrote:
> Hallo Harald,
> In message <1542962899.2564.5.camel at denx.de> you wrote:
>>> The second not working case seems if the board prints some data on the
>>> console after the login propt is sent. This is the case when a daemon
>>> has the stdout set to the console. Also in this case, it seems that tbot
>>> gets confused.
>> Yes, this is an open issue:
>> 	https://github.com/Rahix/tbot/issues/1
>> I don't know how we best handle this case ... Do you have any ideas?
> Hm... why does tbot not recognise the prompt even if it is embedded
> in other output?  Strict anchoring to something like "^<prompt>$"
> seems a bit restrictive to me...
> Alternatively, one could try to trigger a reprinting of the prompt by
> sending a newline (or, depending on contect, maybe a ^D) character?


This is my proposal, too.

> I. e., if no prompot is recognized after the expected timeout,
> instead of hard failing,

Currently I do not see a timeout at all. tbot is waiting forever. If
tbot at the end cannot find the prompt, it should raise the error and stop.

> try sending a newline and check again?



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