From patchwork Thu Aug 11 11:43:15 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: 596642 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp665736maz; Thu, 11 Aug 2022 04:45:10 -0700 (PDT) X-Google-Smtp-Source: AA6agR7GXL9BjXDhocPROeM+z1/lWjBZZTWIBm3pg2LB5vV49pepHkmV19hIVfmmsKjNM4fzTwfl X-Received: by 2002:a05:620a:288b:b0:6b6:4f9b:85c6 with SMTP id j11-20020a05620a288b00b006b64f9b85c6mr24425038qkp.614.1660218310782; Thu, 11 Aug 2022 04:45:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660218310; cv=none; d=google.com; s=arc-20160816; b=0DRhWDmVgmePuQcSSodhYsLRRaL1FdDl896guv10PJrWqmWiEil1CDMRKtp42zNz2K cK5Cjw0FvNr2T1H40+aU+I6DRofFuE9tTUp46Q7MfhJxP+rKa4mIMNoLcUwBwU8BtCpQ SaGXsmWwnSQIDXFSIvkHug5c6EncBQLGwQbDMUApabG10bA3FOktVNn+u2xGNbA7GUno a46P2P+krSoi+iE2KyIXcQrqSN+/F5JVSwSWvOXRxCRgVdNbGenvkX1VweSQ3oAnyH3X icjmHRy+/pZdrsly/f1BloIlQPaDYYt+alP819HcyvvBAx+DNbH2fa/r3srMLWhTr/20 tMww== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=6yL8qt4Q2b/2Os/3Ap8GjGx1WK6fNgdpCqjVFOICsnY=; b=KdaR5XPmnG5rA1arX2TvaN5R09+RshXRCGTSU1cLJ6MIYFgFV0nP0XKTjgWXTTJoYJ oIBpTEqd7LBeCXHrX4Vt62Hj/RffUCx7RFs1NA5sxBAkERgeWvQwhoLKO9hJ7P+YOtLp LzeVEEbGB4WvDA8gsCwIDpoqkGgFUqgx1K83E7O1oMHoHvPDzI0Uei6BJAAOc40KKp1B DKoJ/qlUvRHDU9SjxJAEgjlI7kJdwfOYnWn8QEQZOr37QT1ZSWgG5fPxGjLAVd0cUoy/ 0YivJitQivMopMO3gjoQkBJ6EkqA1MX3wn0XyuUqyUM9i4B0DiiRBGdS1Nfcy9PbBI6A yiLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=unz1bM7s; 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 m13-20020a0562141bcd00b00474060b951dsi1487770qvc.224.2022.08.11.04.45.10 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Aug 2022 04:45:10 -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=unz1bM7s; 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]:46538 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oM6cg-00008m-CD for patch@linaro.org; Thu, 11 Aug 2022 07:45:10 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:53094) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM6aw-0007gz-Vz for qemu-devel@nongnu.org; Thu, 11 Aug 2022 07:43:23 -0400 Received: from mail-wm1-x331.google.com ([2a00:1450:4864:20::331]:39697) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oM6av-0003BQ-BR for qemu-devel@nongnu.org; Thu, 11 Aug 2022 07:43:22 -0400 Received: by mail-wm1-x331.google.com with SMTP id i128-20020a1c3b86000000b003a536d58f73so2561653wma.4 for ; Thu, 11 Aug 2022 04:43:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=6yL8qt4Q2b/2Os/3Ap8GjGx1WK6fNgdpCqjVFOICsnY=; b=unz1bM7s5c7oyoHpAeUaxDvFu1Fen9z/wzj4xsm91fi3VQsUpBwu3z6LWVkmCkW37s y++vudYtetjQhF1MD5TEdr3lnLtvdCNCQsLScLN2qWr6sUltMBF01kyRAGre5SdJETHH NgpgqXlN4Z88/64XDRs8tsJGGZwrNaxew6QQo+VIzc3CnZfCpPEaGLlRu0Yuh6ydfCDB XeRzgWFRYmVH7InVqaKuGT3n1GmxSFzAPFdlMfb040hNL9GiUUbJOxHW4no5gHrMiDvY fYH9+DAWp27UUDFuUVSanS4pRdn+Y/EhjMsn7k1lbnBIArCLfLWXhjCVH+QBuG6HXb/P fw1g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=6yL8qt4Q2b/2Os/3Ap8GjGx1WK6fNgdpCqjVFOICsnY=; b=cPrwWJ0efry2ToCoFFQJxDu1NKRJPJ2Vrv3gs5eSptQISqpKmLV9NmK2IZuuBoCi4X 9eqjabCUTXILrhw9XhUvDNVLMU9wDCOltTH6kPHEhSiuhz4uSJona7uJWbjBK/HYFKyW pWi+R83HnOi/k4Jo7S2c1Nupzh6z+18YHoB1USqPuGcbyforwzvTcQVYDghBQrGgj/Hi bs7YlH9LEHjrvfG6F0TWKPxU1LSR/ejOxq2+HuZVDxqgKcYy2Bv7LaxcLunnmBhx+1ko C4iMwu+5VFD9nhMY582fxMqaQO/0g3mqgpnlPVYpqxPtdibJA7Da1kAggVbi0AIcFbeW to0A== X-Gm-Message-State: ACgBeo0P/VEbvRQNG/HFg599UgitMCcHV7VjuHhgrzvRZ5S57dE0Q0AF /BtuX0e/yTYjxYZ+euygTLuveQ== X-Received: by 2002:a7b:ce12:0:b0:3a5:4d8b:65df with SMTP id m18-20020a7bce12000000b003a54d8b65dfmr5453437wmc.27.1660218199362; Thu, 11 Aug 2022 04:43:19 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id g10-20020a05600c4eca00b003a3199c243bsm8955740wmq.0.2022.08.11.04.43.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 04:43:18 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D5EC01FFB7; Thu, 11 Aug 2022 12:43:17 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?C=C3=A9?= =?utf-8?q?dric_Le_Goater?= , John Snow , Cleber Rosa , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Wainer dos Santos Moschetta , Beraldo Leal Subject: [RFC PATCH] tests/avocado: apply a band aid to aspeed-evb login Date: Thu, 11 Aug 2022 12:43:15 +0100 Message-Id: <20220811114315.3065951-1-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::331; envelope-from=alex.bennee@linaro.org; helo=mail-wm1-x331.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 Cc: Cédric Le Goater Cc: John Snow Reviewed-by: Cédric Le Goater Acked-by: John Snow --- tests/avocado/machine_aspeed.py | 2 ++ 1 file changed, 2 insertions(+) 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)