From: Thomas Huth <thuth@redhat.com>
To: "Cédric Le Goater" <clg@redhat.com>, qemu-devel@nongnu.org
Cc: "Yoshinori Sato" <ysato@users.sourceforge.jp>,
"Magnus Damm" <magnus.damm@gmail.com>,
"Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [PATCH] tests/functional: Remove sleep workarounds from sh4 test
Date: Fri, 22 Nov 2024 14:49:19 +0100 [thread overview]
Message-ID: <a1026443-c8d4-4e07-9d8c-0bd2356e8cf0@redhat.com> (raw)
In-Reply-To: <20241122130804.2013662-1-clg@redhat.com>
On 22/11/2024 14.08, Cédric Le Goater wrote:
> These were introduced in the avocado tests to workaround read issues
> when interacting with console. They are no longer necessary and we can
> use the expected login string instead.
>
> Signed-off-by: Cédric Le Goater <clg@redhat.com>
> ---
> tests/functional/test_sh4_tuxrun.py | 8 +++-----
> 1 file changed, 3 insertions(+), 5 deletions(-)
>
> diff --git a/tests/functional/test_sh4_tuxrun.py b/tests/functional/test_sh4_tuxrun.py
> index 352cb360ef74..dcb49f28b9aa 100755
> --- a/tests/functional/test_sh4_tuxrun.py
> +++ b/tests/functional/test_sh4_tuxrun.py
> @@ -15,7 +15,7 @@
> import time
>
> from unittest import skipUnless
> -from qemu_test import Asset, exec_command_and_wait_for_pattern, exec_command
> +from qemu_test import Asset, exec_command_and_wait_for_pattern
> from qemu_test.tuxruntest import TuxRunBaselineTest
>
> class TuxRunSh4Test(TuxRunBaselineTest):
> @@ -46,10 +46,8 @@ def test_sh4(self):
> console_index=1)
> self.vm.launch()
>
> - self.wait_for_console_pattern("Welcome to TuxTest")
> - time.sleep(0.1)
> - exec_command(self, 'root')
> - time.sleep(0.1)
> + self.wait_for_console_pattern("tuxtest login:")
> + exec_command_and_wait_for_pattern(self, 'root', 'root@tuxtest:~#')
> exec_command_and_wait_for_pattern(self, 'halt',
> "reboot: System halted")
Could we also remove the @skipUnless(os.getenv('QEMU_TEST_FLAKY_TESTS')...)
now?
Thomas
next prev parent reply other threads:[~2024-11-22 13:49 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-22 13:08 [PATCH] tests/functional: Remove sleep workarounds from sh4 test Cédric Le Goater
2024-11-22 13:49 ` Thomas Huth [this message]
2024-11-22 13:52 ` Cédric Le Goater
2024-11-22 13:55 ` Thomas Huth
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=a1026443-c8d4-4e07-9d8c-0bd2356e8cf0@redhat.com \
--to=thuth@redhat.com \
--cc=alex.bennee@linaro.org \
--cc=clg@redhat.com \
--cc=magnus.damm@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=ysato@users.sourceforge.jp \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).