All of lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
To: Peter Korsgaard <peter@korsgaard.com>
Cc: Romain Naour <romain.naour@smile.fr>,
	"buildroot@uclibc.org" <buildroot@uclibc.org>
Subject: Re: [Buildroot] Issue with capture of emulator output in runtime test infra
Date: Mon, 4 Oct 2021 14:14:55 +0200	[thread overview]
Message-ID: <20211004141455.1cadeb1f@windsurf> (raw)
In-Reply-To: <87czolj9cp.fsf@dell.be.48ers.dk>

On Mon, 04 Oct 2021 13:52:06 +0200
Peter Korsgaard <peter@korsgaard.com> wrote:

>  > While we would have expected output[] to contain just a single element,
>  > "200", which is really the only output of the command. For now, I've
>  > worked around this by looking at output[-1] in my test case, which is
>  > good enough because I only care about one line of output.  
> 
>  > However, I'm not really sure how to fix this in the Emulator.run() core
>  > itself. Perhaps we should not be using the -serial stdio (which
>  > requires interacting on stdin/stdout), but instead use a separate
>  > telnet port (but then there's always the issue of which port to use) ?  
> 
> Just a hack, but how about we add a marker after each shell command (#
> MARKER) and just strip everything util after the marker?

Hm, why not. Indeed a hack, though :-/

The problem with the telnet mechanism is that you need to specify a TCP
port that is available. Tricky, especially if you run multiple test
cases in parallel.

Best regards,

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

      reply	other threads:[~2021-10-04 12:15 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-19 12:10 [Buildroot] Issue with capture of emulator output in runtime test infra Thomas Petazzoni
2021-09-19 16:59 ` Edgar Bonet
2021-09-20  8:55   ` Edgar Bonet
2021-10-04 11:55     ` Peter Korsgaard
2021-10-04 20:46       ` Edgar Bonet
2021-10-05  5:33         ` Yann E. MORIN
2021-10-05  8:54           ` Edgar Bonet
2021-10-05 16:04             ` Yann E. MORIN
2021-10-04 11:52 ` Peter Korsgaard
2021-10-04 12:14   ` Thomas Petazzoni [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20211004141455.1cadeb1f@windsurf \
    --to=thomas.petazzoni@bootlin.com \
    --cc=buildroot@uclibc.org \
    --cc=peter@korsgaard.com \
    --cc=romain.naour@smile.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.