From patchwork Tue Aug 16 12:26:21 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 597501 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp2346912maz; Tue, 16 Aug 2022 05:32:57 -0700 (PDT) X-Google-Smtp-Source: AA6agR5e37r+3Xo5soYGRbp+fsWvb36922lRyPinaexRkShdjZdyX4l4X7GANBoKZI3/6RnBwd2U X-Received: by 2002:a05:620a:c4e:b0:6b2:8e49:6b3d with SMTP id u14-20020a05620a0c4e00b006b28e496b3dmr14708854qki.67.1660653177300; Tue, 16 Aug 2022 05:32:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660653177; cv=none; d=google.com; s=arc-20160816; b=p+xEVlVKMHGpeWxlwQriDAAhwxq06REtm3yHq2SmNSsi9bDgXKSzV7gBo6rDS76FvF XBrevAjEaYYEOOtDX0FmIo1u2WSbAZgpNNTdhvj16xJzN3C0JLvbO83KRNouFcZ4xhId 5NRcrG/0073wDe1x3bFiCJowXRtfBowkfFDltlEctk3ioo/e/Ls7iOdAefP7zPlqemj2 NwdojClSD2uDkW2Mh0a53zLQugfhwGmWhIHLwfwEARy9tVhYZidVECNR/Iw0XuzkVmAR uy8fqjvQse6+989jPyStM0tv73X1UqyK69sW83zc2ZOs2B8LgMHLDNylRWJgBvd9g/S3 fVeA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=Qx6wBS0awIg5wJT+Q1AQmTWd+527vRCxS4thMsgW8xg=; b=IVomtbV4nbrM44b+HyrcwZUS6oZrPt/RK8eIbU6bcRmtkKHY1VNS9tULAoUmELo2+s ZPXv7NLZ7BGuOYOocxvRqnTToyp63+mFfZQn4/oTLzuHyW8ELSjHGSFz3vp6XnswZDdX qcJjxvWFfFbtFhmRTtUB1lE7ZUcvsEdTxQEPaqGkBk8C2iCco1PpejtP0hl+sqm671lq SJ2R4wZFeuH9L3NxHKu++aTJa2Dvh6VkW+Lc6oa+WUoDczdiGC3bCOT9hPwrov/5WQAk tSstI0TEGAI9gcVoutd89frGl5Cua0a+MZ6hNF0pLHI5vytvJsVSu6XSV8JWn8wdu9OV 6Kfw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pti8qqDL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p16-20020a05622a049000b0034358b79691si7599179qtx.525.2022.08.16.05.32.57 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 16 Aug 2022 05:32:57 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=pti8qqDL; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:55594 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oNvkd-0001FT-Sp for patch@linaro.org; Tue, 16 Aug 2022 08:32:55 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:51854) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oNveQ-0004jj-HD for qemu-devel@nongnu.org; Tue, 16 Aug 2022 08:26:30 -0400 Received: from mail-wr1-x42c.google.com ([2a00:1450:4864:20::42c]:33348) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oNveO-0001js-6q for qemu-devel@nongnu.org; Tue, 16 Aug 2022 08:26:30 -0400 Received: by mail-wr1-x42c.google.com with SMTP id v3so12474233wrp.0 for ; Tue, 16 Aug 2022 05:26:27 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc; bh=Qx6wBS0awIg5wJT+Q1AQmTWd+527vRCxS4thMsgW8xg=; b=pti8qqDLiXclsQN0cICI/ZjmG95UnefekqiwFqmNALMjvvdcRY1P+04BKSO/VFRhqx ZgM3h9RoiLikS9l2RljNWHV7kZHSSd1R/YSoiU7SSYdUGR8tridjr17jFaQDjUF0tBgf Mqjx+ACPzmPphN0uxI1Y/XIJQsTirCBRWkr0htRP67AEvfH8yxJZyGThx7SqW6JMxFzE xVSnqiPTG5QbkqWzVSaCUFmJRZ1DYCyRmjiOfxN4TNIgYmG/JJjenWCZtWEGdVE9BPo3 HfBxc3OwUK+Q6JBJjevs21SRVrAcH+5ggF+w9n4+tKsglcAurMzKpvX4OxLadzaj7UrC 178w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc; bh=Qx6wBS0awIg5wJT+Q1AQmTWd+527vRCxS4thMsgW8xg=; b=t6dFufj6kVcMPWwvKC2H0BjFoD/rDX5LCTbYKaFprWCaFb3o3h5zEaYNmy39kOevSx fFJEzxiWW4ZS6SQVguIKi2PmW4gjpbW+BSVwf4XdJO/muYaSQMmx2sIMYD8JFtPYW8VY b0YxlgR3Mv1acrjByf/IoF70Z1SSLlNd1Iq6FG0MkAz72HYO2Brxk1mzCwLbSIHqtciC ZuPX/SCZ8vGOSBRpddW8CXZ9+kIvced8b90rV8eU+f/TsLsH0s0S60je2fTsrEYxq9uq rEL8mqxIRFgqOJuZk3xGnMXRp77hra05EaMaeqItXQH1HmWdUKF1lBZ558lEJVpQXTJE bVOg== X-Gm-Message-State: ACgBeo0zTWajdeB31+dwW7clpl5ErKzmRh7s5zGce/iENo2cW6uTfZYM MdTgE+kq6rKoWVAVdv1QOPCfkA== X-Received: by 2002:a5d:6f17:0:b0:225:325:59cd with SMTP id ay23-20020a5d6f17000000b00225032559cdmr5813768wrb.83.1660652786746; Tue, 16 Aug 2022 05:26:26 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id h3-20020a05600c2ca300b003a5ea1cc63csm9238720wmc.39.2022.08.16.05.26.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 16 Aug 2022 05:26:23 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 182771FFBB; Tue, 16 Aug 2022 13:26:22 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: peter.maydell@linaro.org, richard.henderson@linaro.org Cc: qemu-devel@nongnu.org, =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?C=C3=A9dri?= =?utf-8?q?c_Le_Goater?= , John Snow , Cleber Rosa , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [PULL 3/3] tests/avocado: apply a band aid to aspeed-evb login Date: Tue, 16 Aug 2022 13:26:21 +0100 Message-Id: <20220816122621.2066292-4-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220816122621.2066292-1-alex.bennee@linaro.org> References: <20220816122621.2066292-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42c; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42c.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, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@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-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This is really a limitation of the underlying console code which doesn't allow us to detect the login: and following "#" prompts because it reads input line wise. By adding a small delay we ensure that the login prompt has appeared so we don't accidentally spaff the shell commands to a confused getty in the guest. Signed-off-by: Alex Bennée Reviewed-by: Cédric Le Goater Acked-by: John Snow Message-Id: <20220811151413.3350684-8-alex.bennee@linaro.org> diff --git a/tests/avocado/machine_aspeed.py b/tests/avocado/machine_aspeed.py index c54da0fd8f..65d38f4efa 100644 --- a/tests/avocado/machine_aspeed.py +++ b/tests/avocado/machine_aspeed.py @@ -101,7 +101,9 @@ def do_test_arm_aspeed_buidroot_start(self, image, cpu_id): self.wait_for_console_pattern('Starting kernel ...') self.wait_for_console_pattern('Booting Linux on physical CPU ' + cpu_id) self.wait_for_console_pattern('lease of 10.0.2.15') + # the line before login: self.wait_for_console_pattern('Aspeed EVB') + time.sleep(0.1) exec_command(self, 'root') time.sleep(0.1)