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 lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 3C838C021A0 for ; Wed, 12 Feb 2025 11:27:40 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tiAs6-0006xU-S6; Wed, 12 Feb 2025 06:25:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tiArk-0006bI-8A for qemu-riscv@nongnu.org; Wed, 12 Feb 2025 06:25:18 -0500 Received: from mail-wr1-x42a.google.com ([2a00:1450:4864:20::42a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tiAra-0004lj-KB for qemu-riscv@nongnu.org; Wed, 12 Feb 2025 06:25:13 -0500 Received: by mail-wr1-x42a.google.com with SMTP id ffacd0b85a97d-38dcb7122c1so4418674f8f.2 for ; Wed, 12 Feb 2025 03:25:05 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1739359504; x=1739964304; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=zk8npvpvvWsz3fYv0R1o0ULJq8hATZnhrjaHmw2ltQw=; b=CNognFm6sFgAeRIj5QsEIEylGLc40lgtPRNoML62/UHsy7Va/awfHlki0SHl8Jo8xi iMYz6oPhlf5xILDicEnN8jSQK6ZpqxWnusPP3v71VV8sT43Ba/fb5wijThZsZli6H0Ey vG5Jp6Gat+HjyywFuh8W456ovYgZCa3Ml8my8ryBDYN/vqPO4wbspECFPBe+yk1b8zD5 21qGrLCZTnw0zH2UQ0OK93NNAWEDP87H0/V4Gb0TsD+jOKXZs/IRyVM+TRW0DKif+zxi OANMb8eT4t2HlIHgBbKixMM326+VyxN3261ceEhlk0SgO8fhrS4NRT18XrQP+FeplGCB SV1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739359504; x=1739964304; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=zk8npvpvvWsz3fYv0R1o0ULJq8hATZnhrjaHmw2ltQw=; b=i3Iat4RbYWQ9LW3/CV0cgu3dRf3CGXaQV/PguoOEpvOhL2qgTX07e0vcTFhpROVC5w uCm15RMUbdQrPCAJDxapGK4P7Oh6Shamn6aYm2Hvuj1ku1EX+zc/g1adcRIuthJuqxEt APjDsoEF9MbAcmRvsf3EFB/Pk7VSP10m7lun68KlqD5ndbAzUXf3FlQU8JKa5L1J+y/o n5JtpYxHXYLkanx0L6Q7RzvUPZSuRBwxYdM/JVxOqmHz5/7ndSYPeMFKYKybjNRbvuWV nqKkXemar2bVxxx7eqSCIUgRHOMS+uIXopHHGzRL6tsOt6Yk0n7It83+5NCbMsuKgr8/ oJbQ== X-Gm-Message-State: AOJu0YyUTygn2lUnKltvMGYhQcubCYYE2uPzmJjMPhTbe1vyN44G9lJt wFtCmTauzZrYyFzoH2ieWrDQ6RfvI4UhDgJ0qk2s/1q3L3DaySDOsqtroYgN2RA= X-Gm-Gg: ASbGnct7/In2ohl1cBoPBZqf2517lerJcI+5w2I6eg7yN3kAvQTFJS4/rnBY2pt6sCU iRaUe0H4qeCSeLLsRlVVGGDZdpkYW0W29+WEWjJ+6ARIMbwfEkt2y91+g70u/1jfpgyDe3OxmkD 6pKTm+Y3pcmObZn5WsG2/nvV44apG9I6c95xq7/gW6sIzY5mM54EIHcYH3N4oQOy2qD+DgzKbnz iggcoxo/QY2e4pggVkiqoNxvTU4323UekopHiRPneDzYBuvLDJ8IUy+qFnyCD9qlTBjZu8awdu8 FTeP9UbxLQ6G0LXQRtcsIEexASLl3mVeHt0W9j95Jleu7WSdR9fGYso/5JtMLaJh0Q== X-Google-Smtp-Source: AGHT+IG3nBiLmWqXeM+wrtJORgmRECrxXkhFarvFnsabu9nZ7V113AU4vBSCj1hdhWO3SaQLIS6ReQ== X-Received: by 2002:a5d:648b:0:b0:38d:c2ef:e291 with SMTP id ffacd0b85a97d-38dea2e93ffmr2618859f8f.39.1739359503780; Wed, 12 Feb 2025 03:25:03 -0800 (PST) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-38f2103100csm483962f8f.2.2025.02.12.03.25.02 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Wed, 12 Feb 2025 03:25:03 -0800 (PST) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: qemu-riscv@nongnu.org, qemu-ppc@nongnu.org, "Edgar E. Iglesias" , Alistair Francis , Richard Henderson , Thomas Huth , Markus Armbruster , qemu-arm@nongnu.org, =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= Subject: [PATCH v6 10/11] tests/functional: Remove sleep() kludges from microblaze tests Date: Wed, 12 Feb 2025 12:24:12 +0100 Message-ID: <20250212112413.37553-11-philmd@linaro.org> X-Mailer: git-send-email 2.47.1 In-Reply-To: <20250212112413.37553-1-philmd@linaro.org> References: <20250212112413.37553-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::42a; envelope-from=philmd@linaro.org; helo=mail-wr1-x42a.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Commit f0ec14c78c4 ("tests/avocado: Fix console data loss") fixed QEMUMachine's problem with console, we don't need to use the sleep() kludges. Suggested-by: Thomas Huth Signed-off-by: Philippe Mathieu-Daudé Reviewed-by: Thomas Huth Reviewed-by: Richard Henderson Message-Id: <20250206131052.30207-15-philmd@linaro.org> --- tests/functional/test_microblazeel_s3adsp1800.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/tests/functional/test_microblazeel_s3adsp1800.py b/tests/functional/test_microblazeel_s3adsp1800.py index 1f0812eec63..d50b98342d7 100755 --- a/tests/functional/test_microblazeel_s3adsp1800.py +++ b/tests/functional/test_microblazeel_s3adsp1800.py @@ -7,8 +7,7 @@ # This work is licensed under the terms of the GNU GPL, version 2 or # later. See the COPYING file in the top-level directory. -import time -from qemu_test import exec_command, exec_command_and_wait_for_pattern +from qemu_test import exec_command_and_wait_for_pattern from qemu_test import QemuSystemTest, Asset from qemu_test import wait_for_console_pattern @@ -32,9 +31,8 @@ def do_xmaton_le_test(self, machine): self.vm.add_args('-nic', f'user,tftp={tftproot}') self.vm.launch() wait_for_console_pattern(self, 'QEMU Advent Calendar 2023') - time.sleep(0.1) - exec_command(self, 'root') - time.sleep(0.1) + wait_for_console_pattern(self, 'buildroot login:') + exec_command_and_wait_for_pattern(self, 'root', '#') exec_command_and_wait_for_pattern(self, 'tftp -g -r xmaton.png 10.0.2.2 ; md5sum xmaton.png', '821cd3cab8efd16ad6ee5acc3642a8ea') -- 2.47.1