From patchwork Mon Dec 2 20:40:19 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= X-Patchwork-Id: 846653 Delivered-To: patch@linaro.org Received: by 2002:a5d:44cd:0:b0:385:e875:8a9e with SMTP id z13csp94017wrr; Mon, 2 Dec 2024 12:41:29 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCV/PAgcaNDM6wKIH4UkOOf92sC4P1vKs1zZVA2T5xzET2pKBs4VRINYxQ/kl1C6fO58kWGgiw==@linaro.org X-Google-Smtp-Source: AGHT+IHU/hL5VJyOCLRlnnjRyXygb2D0xdcxlMrleh2DFhNrxs6jo1JAUD52XE7YvSVs1e2esSSA X-Received: by 2002:a05:6102:26cd:b0:4af:597b:f6 with SMTP id ada2fe7eead31-4af9716dafbmr76600137.4.1733172089208; Mon, 02 Dec 2024 12:41:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733172089; cv=none; d=google.com; s=arc-20240605; b=LHdouNosq8leC+AWt50zR50oAYcjsLKWpBlNZYCkmB6J0xEWHRDQk2+lYh1aJHPhom vyS4NEGYSY3ktaKPoEe2UK/7kdWUVVoTGseZYd3PrgKT9IbVON7zKWzHV486As/d3Asv zuoLbMOHr6+0ICeLY5jLA1zFYrhMOZSooZBOUERKCxOcqwh6Q2W3xHX/Il6sVBTtdHkJ 4QuWsEiKq30Y0K7yzCu/Dv0uHSF4f9/SG5G05echBBw9qWShzczesEsaTAgRyyHVeO3r XoeXPUZX2AYmmzRhTfqH5meyTPS7bAmff/0rXyHEYI8VFs3zJiHHOv+7rUnsUWmJ//Np bDSg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; 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=BuTlSgZfbP0ZAQXYagEGb5OS1Rg8bdaBraFE+cBHSvA=; fh=cNxaQoWlo5iP6aitJqEeJ836Mh6a2suqDVd/pYCLQXo=; b=cALcJLN1bKuMYFMxKAK62P3LGVekxAJw2M2SV6AaFmCBS9Y3k1p+JHB5iv49RGLoYQ lPZsdAfhKmYhKOfT/OnMcqhrdCfBZcRBRLNum8UFirfk8KYPWgHdXE1gyvgknXal3/rL THJ1hoZiMJGDHex/oUXV6aKsihfVd1d35zDCVbsWPGlhD2kmmeru+OUXgEOsTXpbA3qt o9L8136O3E3jigVv5TILNigXtJT2A7duSB5bBixJbPsyCJP1M5lbgV7IYATUuosM8CMC I+xD36SaUSlxsjIWzOX3EEZ4jUpuaH/Dy7oRRlAvYUfQ7K6APVdl+Pq8/kl0DztwArnM RI1w==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=S6aHNrHv; 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; dara=neutral header.i=@linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id ada2fe7eead31-4af590d59afsi4607597137.75.2024.12.02.12.41.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 02 Dec 2024 12:41:29 -0800 (PST) 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=S6aHNrHv; 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; dara=neutral header.i=@linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tIDDo-00022E-Sz; Mon, 02 Dec 2024 15:40:45 -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 1tIDDi-00021z-Vt for qemu-devel@nongnu.org; Mon, 02 Dec 2024 15:40:39 -0500 Received: from mail-ed1-x52d.google.com ([2a00:1450:4864:20::52d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tIDDh-0005cM-GH for qemu-devel@nongnu.org; Mon, 02 Dec 2024 15:40:38 -0500 Received: by mail-ed1-x52d.google.com with SMTP id 4fb4d7f45d1cf-5ced377447bso7496690a12.1 for ; Mon, 02 Dec 2024 12:40:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733172035; x=1733776835; 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=BuTlSgZfbP0ZAQXYagEGb5OS1Rg8bdaBraFE+cBHSvA=; b=S6aHNrHvjmSIeO0VaJZtu2YwxhgZ7Ni/GV/kzbDcK+jkhpeJ8KHL+nWmg4+ysN5RZ2 s0f9cTJsgVTTE9a5ajp+zceOROIP2n1tZSY7XfZw62NU5BssOLYexxcQbHwKkegvoXNr z4iYA3P9e37Vt6A1IegO+tUEklIDPQ9gaJFoWn0cYF0AvQQlUrMpo83vFBo1om4gGvI/ FmC6T+GMM9mWRxnBxEA9qY6SDj9zIU6gm5WwnBLdDmXEya3rq5IvyT/HvgkX0NaF2fFi cpWHsboBk5nsak1aSybSDe58xQACgTDSEekdiPPebvHUDI48G8v/ewkcfbPjC7vlyNld aYyQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733172035; x=1733776835; 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=BuTlSgZfbP0ZAQXYagEGb5OS1Rg8bdaBraFE+cBHSvA=; b=BIJu5jatfYPPWu+rZoUfQ+zHnn/m4kcw+u7r8MdtWmuBDUkW7g/04q9TWOdw3/hvqp yYmAkEInbdKCLcU0IbpD02gsBhz8csq7CRFrqQ3928PxX//mEWtAucgY7+dMJkkwfQwE bkefLcXBfgr/Xxjdhw6UGtctAwqY6OPJs0hv6ON1mizmepnJQSpLETMFMKTeFBVTqHbI yGr9WE2zm5hVYwTWulSbCnmvbmbo/MSgqRu0EYr1OvQ1IEgs7o9na70fezChe+OdMiU/ V8z/BEnyzmDeyV30Ht2HcPqp4GlRHef8nXi+oXaY9eBqqaEdoU97yeSGDmtNhPowAG7F dyHg== X-Gm-Message-State: AOJu0YyK1KnetM5+nqamDtdDQTXwToogcdbQ86dcQtYEeMEOmeYSSWNg OU6R4ozuC2C66NA1SrEx/Tr+hJTmSfxjhzCFdWHgmWYdXWRb2xueq816xd8VgErxKkAYHQrDjJy i4Ts= X-Gm-Gg: ASbGnctJOoi8FgWy3rFH5QxsmpeErl3RTseqMyXl4UDTp9NR84T36dudWTfFbOgaPl/ TNopIiLBbiC3EzE85hv/Qa8ZzJPdmbpGAA9m4PNXGx7RrR3g+eT0IhHoLe1stT0v3AbUXm4hPIZ 0JeIfTtIgEHSHTrubI9GJEuJxcaTyfnVUGygYmJr99CTCkiiqp5jmxGFFKeGp2QSwoIZfU4p6/b RRabqFtwTTBOLUPQXVCCOe6Z3mmsg9Y6h+Eh3HM4cXdIEHrKZQUVUN7fs01jupZlVRZgaRx X-Received: by 2002:a05:6402:1f0c:b0:5d0:c9e6:309d with SMTP id 4fb4d7f45d1cf-5d0c9e6323cmr13451504a12.1.1733172035517; Mon, 02 Dec 2024 12:40:35 -0800 (PST) Received: from localhost.localdomain ([176.176.160.129]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-5d0eb2d116csm1578300a12.61.2024.12.02.12.40.33 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Mon, 02 Dec 2024 12:40:34 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= To: qemu-devel@nongnu.org Cc: Marcel Apfelbaum , Yanan Wang , Markus Armbruster , Eduardo Habkost , Thomas Huth , Zhao Liu , =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= , =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= Subject: [PATCH-for-9.2? 2/2] tests/functional/test_empty_cpu_model: Use QTest accelerator Date: Mon, 2 Dec 2024 21:40:19 +0100 Message-ID: <20241202204020.55665-3-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241202204020.55665-1-philmd@linaro.org> References: <20241202204020.55665-1-philmd@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::52d; envelope-from=philmd@linaro.org; helo=mail-ed1-x52d.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=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-bounces+patch=linaro.org@nongnu.org When testing with a HVF-only binary, we get: 3/12 qemu:func-quick+func-aarch64 / func-aarch64-empty_cpu_model ERROR 0.62s exit status 1 stderr: Traceback (most recent call last): File "tests/functional/test_empty_cpu_model.py", line 21, in test self.assertRegex(self.vm.get_log(), r'-cpu option cannot be empty') AssertionError: Regex didn't match: '-cpu option cannot be empty' not found in 'qemu-system-aarch64: No accelerator selected and no default accelerator available\n' Explicit the QTest accelerator to be able to run the test. Signed-off-by: Philippe Mathieu-Daudé --- tests/functional/test_empty_cpu_model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/functional/test_empty_cpu_model.py b/tests/functional/test_empty_cpu_model.py index 0081b06d85a..16ce1892d84 100755 --- a/tests/functional/test_empty_cpu_model.py +++ b/tests/functional/test_empty_cpu_model.py @@ -13,7 +13,7 @@ class EmptyCPUModel(QemuSystemTest): def test(self): - self.vm.add_args('-S', '-display', 'none', '-machine', 'none', '-cpu', '') + self.vm.add_args('-S', '-display', 'none', '-machine', 'none,accel=qtest', '-cpu', '') self.vm.set_qmp_monitor(enabled=False) self.vm.launch() self.vm.wait()