Message ID | 20241203091036.59898-3-philmd@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a5d:44cd:0:b0:385:e875:8a9e with SMTP id z13csp371934wrr; Tue, 3 Dec 2024 01:11:57 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCW68wAg6THh1g46pdR5aL1qzxvNoUn0Eoee+/rRRnxcWsYnFm50NX/z/HtelyOq4m/fJDOvFQ==@linaro.org X-Google-Smtp-Source: AGHT+IFJBhwJ2FvoECVU9ZSxwix7RrlHgUOjlC/HehRQxzuVXLKpyKBTDUu6h/7ziKw7MXqPktIF X-Received: by 2002:a05:6102:3ed0:b0:4af:4b03:4b8 with SMTP id ada2fe7eead31-4af971d8d15mr2382174137.7.1733217117483; Tue, 03 Dec 2024 01:11:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1733217117; cv=none; d=google.com; s=arc-20240605; b=FO73gnb9Fsg3/ArtitZd/g/uIUIJg2/itj9aZh4lD/S684bmd7I1c83G3dO9nayGdn xYEDV2uCwOiVM8vchZECG8vVOWs47qkYc+nYR74Vj4zzmhMt7KfLMRNSSRW276QDEDM3 itQmsz4wSlAZB0my/CxwrDLqU90Dtrd44F2j+pe/lxRhSsI4Djm4RGGDAwidDd8qqfP4 N6kGWGT6ObYf3W+Npkyo/IlO2nomSRhEfuoQztsElEkHa0Z3fR7kktmwek7mjIEt01jX KOTnDxjcV5cMSjdF8bBUZrkZYropgSp1CWDb4ieUvvmFZAMUbPjppL4toxgjJiGiFhWr 2TUA== 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=Zklyya5OkEnNrhger6hBnXU3zSz+e7zU5Eu5GV2az4Q=; fh=a0zgXOyw3Ng4Zt0rwfeCzWYiRmTLfbnxJXMDvcNs5iY=; b=Fs6hrnl+zkxVmWoirHg9VHHiTqao1P54tUOFXvuGbaSOdZWegCe1eyvoDuxnjTtZr/ AkoQD/hLvFsd/3fecOR3qE1td1w7ByFpF/UcqgfVnUNqFZokNvMYRpDbLP22L+lY83Qn U5VOcYkwzyJKFi7QpuboB6yeiHhlaA2gOTt18dGMq6DIWzlsq/5Pjvl5FROK3cPfBsJf QJVnnueqCPr1sCLA1/BAoLWZVrTejy+WrXPJYSi3WZ9XetnY0HSn3OPxhDVin1dTLqwT m65LFrqZNkcuB3pEpgshnHzT2STI5yygMEMp6tgTVsSPw0EE3Z0uP0VAz/IEnXkYc1kw 0FZw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=vvgpGq9g; 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: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id 6a1803df08f44-6d899613322si75589116d6.512.2024.12.03.01.11.57 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 03 Dec 2024 01:11:57 -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=vvgpGq9g; 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 <qemu-devel-bounces@nongnu.org>) id 1tIOvp-0001fO-E7; Tue, 03 Dec 2024 04:10:57 -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 <philmd@linaro.org>) id 1tIOvn-0001f0-MQ for qemu-devel@nongnu.org; Tue, 03 Dec 2024 04:10:55 -0500 Received: from mail-wm1-x332.google.com ([2a00:1450:4864:20::332]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <philmd@linaro.org>) id 1tIOvm-0001GH-5d for qemu-devel@nongnu.org; Tue, 03 Dec 2024 04:10:55 -0500 Received: by mail-wm1-x332.google.com with SMTP id 5b1f17b1804b1-4349f160d62so44859985e9.2 for <qemu-devel@nongnu.org>; Tue, 03 Dec 2024 01:10:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1733217052; x=1733821852; 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=Zklyya5OkEnNrhger6hBnXU3zSz+e7zU5Eu5GV2az4Q=; b=vvgpGq9gfh6sO+W6Pv4O2TWZaT8QqNsENAyPeW4halmr8r85gS+0SHxgvZXHm0hyhK uxO0ByW480/Lxt4ro6ceF81jx18trJqN1IqQjIYJoROilo0LOLYut1Zv4ae39rqXN/h4 SFPfoX//RTizFAJ2BB4v1/cX4IIDdw20YNt2Q0evDhxxgQjwcsxJuJXyak6BNAOGC89C Hga/Cf9nvuDWnwhdv4nHuaehnu4EiMTCKjMzwjOPR75qNLN4wUkqnNoZR9iegG5+AMzU 4oIG3219gwWZrpGrElg4adUFCvq9wcnPDXndHEb3UoZb2yi6Ny1JxeGIJWuMgSqJYDNZ YxZg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1733217052; x=1733821852; 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=Zklyya5OkEnNrhger6hBnXU3zSz+e7zU5Eu5GV2az4Q=; b=KEI9Jlkvpb0JUgK0Z2X5fMMefgnYUGZyRa4fkrWxFWvtpAON3jUFAdxWBmjIs0xjO4 5mQ95sKx27RUuwPMm59vrlIEx2vbYS3iTTD29wGQ4BSOrFaF0Zj2FmsTCHM5bLJmuR8t 3Kgpx4o0AUlCIGUZMkWZ6rPoGois+pLSC/Vp1swbJO3yssmDWf+ISkyBd9JGhjjXG97G cgy8ZFUgSc5VmtMtIiVabR5SYx+hXmc4R+D0rO6MQfaslTctBjVKq9JLXq2l0lYEm1ch zsmp6QORaav5qtvJ6swUGbdrZJ67ot6GHirPq8/0m1qc2WWkUNIvIwJH9PS8t8g6tIhw JcVw== X-Gm-Message-State: AOJu0YzjbblISKANe+RPfQ1avCMe4rsA1zp+/pVHxO4hea7AkYtHuvx7 P8DiCQx+bcxkS53pWBuN6493s8krj6cyXmNXvLapi2rpG2Ke1VHmhtIP6N0QvOLBIkSf3OKrshZ hmtk= X-Gm-Gg: ASbGnctbgHau4jnhfN7Ucr1qzWvgIL6qUi42wAPv+29u8SPwd/DxFRH/SgsrvxLoogc 7j35yGVnwo2gvKIMyf1cTpdHVe6ftoL0EayFVARuMWpCRibHEPpojtda8wnhxufnQIfv5MK6ElP oCr/bt4kBEH254ERtU9KpAh2NSEaU1t0zoP1fRjt/E4o0i/MRVuoBGf7OuSjmHzlDKGg+FoG3fa l9OoTZ7byowyQj+eddNPRYeOIfgf2pqUe3T14dRy5J46jYfUzVEjvmBBRjRc5eH1dSjh8vA X-Received: by 2002:a05:600c:1c07:b0:434:9c1b:b36a with SMTP id 5b1f17b1804b1-434d09bf7b4mr15037615e9.13.1733217052265; Tue, 03 Dec 2024 01:10:52 -0800 (PST) Received: from localhost.localdomain ([176.187.209.146]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-434aa7d21bcsm217075815e9.30.2024.12.03.01.10.50 (version=TLS1_3 cipher=TLS_CHACHA20_POLY1305_SHA256 bits=256/256); Tue, 03 Dec 2024 01:10:51 -0800 (PST) From: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org> To: qemu-devel@nongnu.org Cc: Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Thomas Huth <thuth@redhat.com>, Zhao Liu <zhao1.liu@intel.com>, Eduardo Habkost <eduardo@habkost.net>, =?utf-8?q?Daniel_P_=2E_Berrang=C3=A9?= <berrange@redhat.com>, =?utf-8?q?Phi?= =?utf-8?q?lippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Yanan Wang <wangyanan55@huawei.com>, Markus Armbruster <armbru@redhat.com> Subject: [PATCH-for-9.2? v2 2/2] tests/functional/test_empty_cpu_model: Use QTest accelerator Date: Tue, 3 Dec 2024 10:10:36 +0100 Message-ID: <20241203091036.59898-3-philmd@linaro.org> X-Mailer: git-send-email 2.45.2 In-Reply-To: <20241203091036.59898-1-philmd@linaro.org> References: <20241203091036.59898-1-philmd@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2a00:1450:4864:20::332; envelope-from=philmd@linaro.org; helo=mail-wm1-x332.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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
tests/functional: Fix tests failing when TCG is not available on macOS
|
expand
|
diff --git a/tests/functional/test_empty_cpu_model.py b/tests/functional/test_empty_cpu_model.py index 0081b06d85a..e3bca707af9 100755 --- a/tests/functional/test_empty_cpu_model.py +++ b/tests/functional/test_empty_cpu_model.py @@ -13,6 +13,7 @@ class EmptyCPUModel(QemuSystemTest): def test(self): + self.vm.add_args('-accel', 'qtest') self.vm.add_args('-S', '-display', 'none', '-machine', 'none', '-cpu', '') self.vm.set_qmp_monitor(enabled=False) self.vm.launch()
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é <philmd@linaro.org> --- tests/functional/test_empty_cpu_model.py | 1 + 1 file changed, 1 insertion(+)