From patchwork Thu Aug 11 15:14:12 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: 596648 Delivered-To: patch@linaro.org Received: by 2002:a05:7000:b345:0:0:0:0 with SMTP id w5csp831292maz; Thu, 11 Aug 2022 08:16:42 -0700 (PDT) X-Google-Smtp-Source: AA6agR5y5WOSBlNHQvLDtf5JJFrHl4wUga1hepZXmC/QIOpU5PdXGxgo8nSozhaPOn+o8gOow+yd X-Received: by 2002:a05:622a:1049:b0:31e:edd3:e41a with SMTP id f9-20020a05622a104900b0031eedd3e41amr29491400qte.87.1660231002152; Thu, 11 Aug 2022 08:16:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1660231002; cv=none; d=google.com; s=arc-20160816; b=X4td+RFO9z1fQdZYxxR7/H2XkD1B3lm4PTgwcWZS3so/twMACqdwzJvga360+2TFoB vKSWxMc1/wVdk9lU9cKLHd9CiIfkClCGDKhNBuFXpDbqLS0ttZxmX66ka4hMD7xTkN6X Lh87ZDgljHldfWWddta2lEXM2Wmu9oThsyszCLRTk4wi4Rc81KfEG3mGWWu/36CpLDoa 6FPeAlZ3rlFVYWvSb4AcQKA2lrxAv3VG8seHFRnWAcrCsz/emcM4wuaExn17oPX1WP+Z QJUIV43LIFm3PD9J6HT0rt90z+PqD+W+p0NjRm34lbSKIft7UOpvfnQ2Ka6zQ49TF7ex vq3A== 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=A4Im+0B8i1kKXa9xofWgQuBA5l5Ynpf3TEOMjj9zbKM=; b=z8x6xLd6ACr4iLHM58Uxf62uUG4Xz1dC6Ak3lHLktcGuvD5yCfDZP4nJxbPe0MVo8o wDd2mwrqWg74IPonFyNEyegISgN9adN20BqV59kEY7zZ4IknSI9vlC3dlM7cDWv49qbz fCJLnkuKeqktduWe4zk1P6Eh8rHi5ENP1kfXLc9AvrMlgeYt+AOBZcGoPvAtuh5KrrCS fcXtvTKAKM615BX8K/MwA8TSZcAu0Js2DFhDY76FRIUatFwvS6qIVYGRYMDJB3ppoaVf obF2+CdGQS+NzbkTd2tGZtlMZhQ/QZ99GaOMmzzIzkMKecB2MPoAtANo+SHcEt9KZ/q4 HlHQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=BEy4XH53; 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 iy8-20020a0562140f6800b00472faebbe5dsi1968151qvb.263.2022.08.11.08.16.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 11 Aug 2022 08:16:42 -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=BEy4XH53; 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]:34078 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oM9vN-0005En-LM for patch@linaro.org; Thu, 11 Aug 2022 11:16:41 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:41692) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oM9tE-0005B8-Am for qemu-devel@nongnu.org; Thu, 11 Aug 2022 11:14:28 -0400 Received: from mail-wr1-x42d.google.com ([2a00:1450:4864:20::42d]:33411) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oM9tB-0005i8-RT for qemu-devel@nongnu.org; Thu, 11 Aug 2022 11:14:27 -0400 Received: by mail-wr1-x42d.google.com with SMTP id v3so21778396wrp.0 for ; Thu, 11 Aug 2022 08:14:25 -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=A4Im+0B8i1kKXa9xofWgQuBA5l5Ynpf3TEOMjj9zbKM=; b=BEy4XH5373rENUsQThPIfNYqgpxwBcRwvgyNj2IEZe0yCasZDq3UoDBMycqfzQhq9W 5sHQkWov7ugLSvEyHZ9qL56NNK7iRF53IIvdA3E2bh0iqleGGjN1iqHP0fi8GI7pQCii LFIGUIU1I/TCjQ9cwr0iM5+RjE0aJHzyS9HzrxFgNK0PYSiUCxSFwFPOr3xoESpbY3Y0 msZhE6QexukBqzJnDutV9zX7Z/YBpHzcA1VjPmS5YfJyf0UL94uC7jWoXPzMibzdSKre 0EKkumYTT+F2tmfp6AgIAIg7kwxk8RUTwW1S5s9cw3dddrRPVKTzs8I5JOrls2qqCsx9 LKiA== 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=A4Im+0B8i1kKXa9xofWgQuBA5l5Ynpf3TEOMjj9zbKM=; b=26o9yYjvg266RpuNkOhN+C+8IX6ViWR4oigV2qipOPJI+CDyGiOWfnOvPNXGa8zFbj Khg+Acb56SGVtXVWtkD2AoVvC8WoO0Jm+uZ+QZ4BUzVeiZYtnCSV/Eh9vAB31+lSpV4g nBYisceoQ51CJZ39RHQkG9FAo4tQVn1YyunOmjPvErXHFVFqpUZrosMlQo4BmyukD3l3 dUXkGhRJltrbWaU/pEeHJ061+MeiSnwoo59uQvvQv5crejHnuPkbTTrD2OD72zSJpQCw Oqi5MPtz6i58g31sR/L2WjAvASFyaguyzeNzAE8HsSzBu3vj0pDGAWg2xEKWvha19xMu /dAA== X-Gm-Message-State: ACgBeo1+nTNJzJeVt+onine1k0CuBsZEGImd8vSHTBQPoqRGoxVpy+c+ 9DM3UjY8VaqvJGwgaCuagB6ZSRsq3gAqCw== X-Received: by 2002:a05:6000:381:b0:221:7507:bb24 with SMTP id u1-20020a056000038100b002217507bb24mr18164061wrf.373.1660230865189; Thu, 11 Aug 2022 08:14:25 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id b17-20020a05600010d100b002206b4df832sm19125400wrx.110.2022.08.11.08.14.16 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Aug 2022 08:14:20 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id D0CDB1FFBF; Thu, 11 Aug 2022 16:14:13 +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: [PATCH v1 7/8] tests/avocado: apply a band aid to aspeed-evb login Date: Thu, 11 Aug 2022 16:14:12 +0100 Message-Id: <20220811151413.3350684-8-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20220811151413.3350684-1-alex.bennee@linaro.org> References: <20220811151413.3350684-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42d; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42d.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 --- 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)