From nobody Sat Nov 15 16:34:55 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=linaro.org ARC-Seal: i=1; a=rsa-sha256; t=1750681395; cv=none; d=zohomail.com; s=zohoarc; b=j4at7RoHqgjSpisN127lTr/cnl4YVBkKcOiqCpO/dpEgnlm1xGeLhxJpRowMV7ljcQmktLqwNj0vpYh9PaJhge3BKHt4fqcrX+s3g++5tFP687ExML/slfY1DbRNfhZO3uLy/Pd6b7ghLhBNUbYoGAvNdcnBXpxYo0ZBKvJuPNY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1750681395; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=xtQNZzACUXAAbylIZWuCAJaOBU6QlQnouJAN5jXvi6I=; b=iSoLb9cZyKdIbJZHo+t0aCtg78Q5sXrcs0SlwPDdOye+Mxop1cDe0tUlAkMoUpH66fvAMA8l3RkTFjfGt4f7rfUSvXBngnVBffaM1T/qslIiZQH09d3uJTFXAvhlcYOSvF8Ms33aA710CrGE7GbZKnBHCsdvP/tliV/ZKY5Oww4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1750681395874268.8030230369018; Mon, 23 Jun 2025 05:23:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uTgAj-0003wH-UJ; Mon, 23 Jun 2025 08:21:26 -0400 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 1uTgAI-0003AI-Oy for qemu-devel@nongnu.org; Mon, 23 Jun 2025 08:20:46 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1uTgAG-000147-IP for qemu-devel@nongnu.org; Mon, 23 Jun 2025 08:20:46 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-451d41e1ad1so28467255e9.1 for ; Mon, 23 Jun 2025 05:20:41 -0700 (PDT) Received: from localhost.localdomain (88-187-86-199.subs.proxad.net. [88.187.86.199]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3a6d0f104f6sm9656927f8f.12.2025.06.23.05.20.38 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 23 Jun 2025 05:20:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1750681240; x=1751286040; 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=xtQNZzACUXAAbylIZWuCAJaOBU6QlQnouJAN5jXvi6I=; b=YGfZwPofegnI+ZMTvpDgWncTBpOAzVVbxl5lG5PlPyTxWVvcVHAqDe8KS8GlA3wYH5 eyWZFlwIXXr5K6gPU5MY3iziTmSeBGivCZKC/2E26fob9rTHeAYs3xRENPTcYvxMWbb1 XhGdvLuY2iZWl0u5TOsxnsMOGDQCpztjxDO7TjwL4JT6oW615RsNVHiRIb6uj4sSHPAP NrqjXLTbyF0cdyGmrMkhbC/tAQgS1+T/Cm1krZVlW7TpM6Pu/Kos2/I2P7ZhDYWL/kGJ jUgdMci2h2zZJsfeCfPpntYHJLkUs66vq+PxNMX4tKu1y4r8rdKfhlhjlHlC6gWoXgdV raQw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1750681240; x=1751286040; 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=xtQNZzACUXAAbylIZWuCAJaOBU6QlQnouJAN5jXvi6I=; b=QeJV6q69DBd1qr9B0tcajRFHFmfHvEeACs0J1UZ9sTUPZmdXtTGLacIONEeTXcA0pW IcyodB5R6PrjWLzjo2/SOVfuYcbj75AVUY1u4EdTfHzQTs4s62TYxpdUn6c16bCT0hyK tSJS79YLltcHixN/+iez0TYvlX5+u1JQCi28fbDtn6TcpJMhSfESgXgRqRkSF3YnRYKz ffgbQrX4DiLHdRkYR0559d6y/juVFAUhmp1oJq9+w0ty6SZ92qWIxsVvhkw7KFXEi/PW EseP6qRC6VQ2Hqq37LYttQfDuyeKmFerP5puQAcUnzb/sBtLFZPfAKJXGm5WpAKlEUr2 OBXg== X-Gm-Message-State: AOJu0YxDHWJdxKGGCVKnfaEwLpMRO+PQfJTnFad0RfoM75bJqwIWgiWD Zsd7rLTe+HY1P0HOgP2rbyMvJmAcGfgyKMpaihZh2ykNdbUoOOqSezm60dZ0HDFJ4tIoMdu6gDR 5cFvi X-Gm-Gg: ASbGncuUgsr/hTU+i/tvsySEqHjteoRfjP9hUvAQNuhtv3o4oR1/ja58A9A6kZwNdhR XzfeKowbyAgQEZyrkGWuAZtGCNB+nlppbUYduj2gsso0TMK139F+y2BYiqk08HwIU42kQFF0Zwz nzs9uupuQrQ6DdnFRCyjxSWsKX9tpqrutC+CJR0801v43biuHo6do+05wAnx50cqYKHbBT3YdW7 cVwd/4tUCuufBTOvpYvcxzKkzTzRl6n/nEcYC8RWvAu2eRJqF/LQARsR8V9ozsFHAazKbnt64xQ XRbknasHgtg8E4nGXXmMtexSsLjT3xWH+KG4s3ae+ihAovOd58am9FeA7wB7iNIefSQKLJORrey 0GplKd3twMFFSf8Wp3Oqb/mXSpAlpxG3irGkZ X-Google-Smtp-Source: AGHT+IGloUAr04yva76gXPckxz6WSYPWq4wDXpDI9HHEpLc89a3rsZ2d9KIpm2RuC3BaoxLIlkYNIg== X-Received: by 2002:a05:6000:230e:b0:3a4:ef48:23db with SMTP id ffacd0b85a97d-3a6d12f9af7mr10894746f8f.59.1750681239899; Mon, 23 Jun 2025 05:20:39 -0700 (PDT) From: =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Leif Lindholm , qemu-arm@nongnu.org, =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Roman Bolshakov , Paolo Bonzini , Alexander Graf , Bernhard Beschow , John Snow , Thomas Huth , =?UTF-8?q?Marc-Andr=C3=A9=20Lureau?= , kvm@vger.kernel.org, Eric Auger , Peter Maydell , =?UTF-8?q?Philippe=20Mathieu-Daud=C3=A9?= , Cameron Esfahani , Cleber Rosa , Radoslaw Biernacki , Phil Dennis-Jordan , Richard Henderson , =?UTF-8?q?Alex=20Benn=C3=A9e?= Subject: [PATCH v3 22/26] tests/functional: Set sbsa-ref machine type in each test function Date: Mon, 23 Jun 2025 14:18:41 +0200 Message-ID: <20250623121845.7214-23-philmd@linaro.org> X-Mailer: git-send-email 2.49.0 In-Reply-To: <20250623121845.7214-1-philmd@linaro.org> References: <20250623121845.7214-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2a00:1450:4864:20::32b; envelope-from=philmd@linaro.org; helo=mail-wm1-x32b.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-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @linaro.org) X-ZM-MESSAGEID: 1750681397859116600 fetch_firmware() is only about fetching firmware. Set the machine type and its default console in test_sbsaref_edk2_firmware(). Signed-off-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Leif Lindholm --- tests/functional/test_aarch64_sbsaref.py | 5 +++-- tests/functional/test_aarch64_sbsaref_alpine.py | 3 ++- tests/functional/test_aarch64_sbsaref_freebsd.py | 3 ++- 3 files changed, 7 insertions(+), 4 deletions(-) diff --git a/tests/functional/test_aarch64_sbsaref.py b/tests/functional/te= st_aarch64_sbsaref.py index e6a55aecfac..d3402f5080a 100755 --- a/tests/functional/test_aarch64_sbsaref.py +++ b/tests/functional/test_aarch64_sbsaref.py @@ -40,8 +40,6 @@ def fetch_firmware(test): with open(path, "ab+") as fd: fd.truncate(256 << 20) # Expand volumes to 256MiB =20 - test.set_machine('sbsa-ref') - test.vm.set_console() test.vm.add_args( "-drive", f"if=3Dpflash,file=3D{fs0_path},format=3Draw", "-drive", f"if=3Dpflash,file=3D{fs1_path},format=3Draw", @@ -68,8 +66,11 @@ class Aarch64SbsarefMachine(QemuSystemTest): =20 def test_sbsaref_edk2_firmware(self): =20 + self.set_machine('sbsa-ref') + fetch_firmware(self) =20 + self.vm.set_console() self.vm.add_args('-cpu', 'cortex-a57') self.vm.launch() =20 diff --git a/tests/functional/test_aarch64_sbsaref_alpine.py b/tests/functi= onal/test_aarch64_sbsaref_alpine.py index 6108ec65a54..87769993831 100755 --- a/tests/functional/test_aarch64_sbsaref_alpine.py +++ b/tests/functional/test_aarch64_sbsaref_alpine.py @@ -26,8 +26,9 @@ class Aarch64SbsarefAlpine(QemuSystemTest): # We only boot a whole OS for the current top level CPU and GIC # Other test profiles should use more minimal boots def boot_alpine_linux(self, cpu=3DNone): - fetch_firmware(self) + self.set_machine('sbsa-ref') =20 + fetch_firmware(self) iso_path =3D self.ASSET_ALPINE_ISO.fetch() =20 self.vm.set_console() diff --git a/tests/functional/test_aarch64_sbsaref_freebsd.py b/tests/funct= ional/test_aarch64_sbsaref_freebsd.py index 26dfc5878bb..3cddc082f3b 100755 --- a/tests/functional/test_aarch64_sbsaref_freebsd.py +++ b/tests/functional/test_aarch64_sbsaref_freebsd.py @@ -26,8 +26,9 @@ class Aarch64SbsarefFreeBSD(QemuSystemTest): # We only boot a whole OS for the current top level CPU and GIC # Other test profiles should use more minimal boots def boot_freebsd14(self, cpu=3DNone): - fetch_firmware(self) + self.set_machine('sbsa-ref') =20 + fetch_firmware(self) img_path =3D self.ASSET_FREEBSD_ISO.fetch() =20 self.vm.set_console() --=20 2.49.0