From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 37F70C433F5 for ; Mon, 4 Oct 2021 11:52:16 +0000 (UTC) Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id BACDF6121F for ; Mon, 4 Oct 2021 11:52:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org BACDF6121F Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=korsgaard.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=buildroot.org Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 54F9042791; Mon, 4 Oct 2021 11:52:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YtGod6mcvd0q; Mon, 4 Oct 2021 11:52:14 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp4.osuosl.org (Postfix) with ESMTP id AADEA42783; Mon, 4 Oct 2021 11:52:13 +0000 (UTC) Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 65D771BF34A for ; Mon, 4 Oct 2021 11:52:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 55B8584BD0 for ; Mon, 4 Oct 2021 11:52:12 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id B4Om05h9gf1l for ; Mon, 4 Oct 2021 11:52:11 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by smtp1.osuosl.org (Postfix) with ESMTPS id 6816D84BCF for ; Mon, 4 Oct 2021 11:52:11 +0000 (UTC) Received: (Authenticated sender: peter@casa-korsgaard.com) by relay3-d.mail.gandi.net (Postfix) with ESMTPSA id D89A360006; Mon, 4 Oct 2021 11:52:07 +0000 (UTC) Received: from peko by dell.be.48ers.dk with local (Exim 4.92) (envelope-from ) id 1mXMVq-0001nx-P0; Mon, 04 Oct 2021 13:52:06 +0200 From: Peter Korsgaard To: Thomas Petazzoni References: <20210919141053.3afc7389@windsurf> Date: Mon, 04 Oct 2021 13:52:06 +0200 In-Reply-To: <20210919141053.3afc7389@windsurf> (Thomas Petazzoni's message of "Sun, 19 Sep 2021 14:10:53 +0200") Message-ID: <87czolj9cp.fsf@dell.be.48ers.dk> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.1 (gnu/linux) MIME-Version: 1.0 Subject: Re: [Buildroot] Issue with capture of emulator output in runtime test infra X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Romain Naour , "buildroot@uclibc.org" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" >>>>> "Thomas" == Thomas Petazzoni writes: > Hello, > I've been working on some additional test cases in support/testing/, > and stumbled across an issue in the infrastructure, which I thought I > should report before forgetting about it. .. > 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? -- Bye, Peter Korsgaard _______________________________________________ buildroot mailing list buildroot@buildroot.org https://lists.buildroot.org/mailman/listinfo/buildroot