[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v2 02/12] tests/avocado: improve behaviour waiting for login
From: |
Peter Maydell |
Subject: |
Re: [PATCH v2 02/12] tests/avocado: improve behaviour waiting for login prompts |
Date: |
Thu, 17 Nov 2022 13:50:46 +0000 |
On Thu, 17 Nov 2022 at 13:39, Cédric Le Goater <clg@kaod.org> wrote:
>
> Hello Alex,
>
> On 11/11/22 15:55, Alex Bennée wrote:
> > This attempts to deal with the problem of login prompts not being
> > guaranteed to be terminated with a newline. The solution to this is to
> > peek at the incoming data looking to see if we see an up-coming match
> > before we fall back to the old readline() logic. The reason to mostly
> > rely on readline is because I am occasionally seeing the peek stalling
> > despite data being there.
> >
> > This seems kinda hacky and gross so I'm open to alternative approaches
> > and cleaner python code.
> >
> > Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
> > Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>
> I have pulled this patch in the aspeed tree hoping it would improve tests:
>
> AST2x00MachineSDK.test_arm_ast2500_evb_sdk
> AST2x00MachineSDK.test_arm_ast2600_evb_sdk
>
> but the failure rate has increased :/ I have seen failures in these also :
>
> AST2x00Machine.test_arm_ast2500_evb_buildroot
> AST2x00Machine.test_arm_ast2600_evb_buildroot
>
> which used to be quite stable.
This version of this patch is buggy, so you should drop it from
your tree...
-- PMM
- [PATCH v2 12/12] hw/intc: add implementation of GICD_IIDR to Arm GIC, (continued)
- [PATCH v2 08/12] docs/devel: try and improve the language around patch review, Alex Bennée, 2022/11/11
- [PATCH v2 06/12] docs/devel: make language a little less code centric, Alex Bennée, 2022/11/11
- [PATCH v2 07/12] docs/devel: simplify the minimal checklist, Alex Bennée, 2022/11/11
- [PATCH v2 09/12] tests/plugins: add a new vcpu state tracking plugin, Alex Bennée, 2022/11/11
- [PATCH v2 03/12] tests/avocado/machine_aspeed.py: Reduce noise on the console for SDK tests, Alex Bennée, 2022/11/11
- Re: [PATCH for 7.2-rc1 v2 00/12] testing, docs, plugins, arm pre-PR, Alex Bennée, 2022/11/14