From nobody Sat Jul 25 23:06:08 2026 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=posteo.eu ARC-Seal: i=1; a=rsa-sha256; t=1783853651; cv=none; d=zohomail.com; s=zohoarc; b=X2e21SqV3MInV+PkmRBvEBiIKryljLz+uFVays7OXBtjdpBMVvMKm/udkFZ7ZnLsBvqXZCjxs8CZ/r5laAV3SlW8JJ+AvllGOAD9HwT3hLpPsZdqB6E267rDHzNyuZ3yF0m1bCwPyu0pHviyADBKD1bhrAeWTqbKyUtJOYC8qJc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1783853651; 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=HG9fmVRcfZfAW3THAGgWK7vf6V9jEnc1Kw1iVS9EYhA=; b=iGeHzg6kRf1CY2z3GJK/3jOlvz2r2JtzyY4zR/m2rhit/560ogwfbk+5enU4kHdp93n7HIbYjjeuNfLZ7wlSle6ca2d693js2o36J+y4khHWkFimyoswXUAzM4cK2z7w9BT37jXm6mX0D6jE/PfAFelvtWEn5jxkm7bkv8kHedo= 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 lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 178385365132625.95660747926445; Sun, 12 Jul 2026 03:54:11 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wiroJ-00081y-Go; Sun, 12 Jul 2026 06:53:23 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists1p.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wiroI-00081k-5S for qemu-devel@nongnu.org; Sun, 12 Jul 2026 06:53:22 -0400 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wiroF-0007XP-73 for qemu-devel@nongnu.org; Sun, 12 Jul 2026 06:53:21 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 7AD25240027 for ; Sun, 12 Jul 2026 12:53:15 +0200 (CEST) Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4gyj8q0mqFz6txv; Sun, 12 Jul 2026 12:53:15 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=posteo.eu; s=1984.8680eb; t=1783853595; bh=HG9fmVRcfZfAW3THAGgWK7vf6V9jEnc1Kw1iVS9EYhA=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=H3+SawKHsEhZgfQXru4VwYdrJN/2TU9R+DCLC5/4NcVriSi2Qv56ngCToZ+njf7aC 44SgDaLJk1hB4cJ0Xbs31XHbPbns0+zUkzS0Hk9AWT7J7UwPPry1IyIjc2MsWrpWxY 3516vS0E2au3cgA0cNmu9lyD03zSd2EoUqaOZ2pJpBdB0ewuxAiVCYvQsfZcquEAnD dhjMs+iar/GwMhcO1M5mxs7q83hM9TJDDQ6JQW3ID1/WSz7L+hC/ELN4lmX5VRwnPP EpEmHiI+AZxlw8SuPRj1SyR+hwqmJYpDOZa1urA+59mrMU3yTOnXKS3xldx0zEUXYe OXB182BccX56g== From: Thomas Huth To: Stefan Hajnoczi Cc: qemu-devel@nongnu.org Subject: [PULL 1/1] tests/functional: fix querying available machines Date: Sun, 12 Jul 2026 10:53:15 +0000 Message-ID: <20260712105301.35409-2-th.huth@posteo.eu> In-Reply-To: <20260712105301.35409-1-th.huth@posteo.eu> References: <20260712105301.35409-1-th.huth@posteo.eu> 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=lists1p.gnu.org; Received-SPF: pass client-ip=185.67.36.65; envelope-from=th.huth@posteo.eu; helo=mout01.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_MED=-2.3, RCVD_IN_MSPIKE_H5=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_PASS=-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 development 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 @posteo.eu) X-ZM-MESSAGEID: 1783853657117158500 From: Vladimir Sementsov-Ogievskiy Aliases are not handled, and that's why tests used them are skipped, like this: PYTHONPATH=3Dpython:tests/functional \ QEMU_TEST_QEMU_BINARY=3D$PWD/build/qemu-system-x86_64 \ MESON_BUILD_ROOT=3D$PWD/build \ ./build/pyvenv/bin/python3 tests/functional/x86_64/test_hotplug_blk.py TAP version 13 ok 1 test_hotplug_blk.HotPlugBlk.test # SKIP no support for machine q35 1..1 Fixes: 0e7aa78b0bee50 ("tests/functional: use QMP to query available machin= es") Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Philippe Mathieu-Daud=C3=A9 Reviewed-by: Daniel P. Berrang=C3=A9 Message-ID: <20260710090317.498350-1-vsementsov@yandex-team.ru> Signed-off-by: Thomas Huth --- tests/functional/qemu_test/testcase.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/tests/functional/qemu_test/testcase.py b/tests/functional/qemu= _test/testcase.py index 4912a47a46..e4179d165c 100644 --- a/tests/functional/qemu_test/testcase.py +++ b/tests/functional/qemu_test/testcase.py @@ -325,9 +325,12 @@ def set_machine(self, machinename): resp =3D tmp_vm.qmp('query-machines') =20 machines =3D resp.get('return', []) - cls._machines =3D [ - m.get('name') for m in machines if 'name' in m - ] + cls._machines =3D [] + for m in machines: + if 'name' in m: + cls._machines.append(m['name']) + if 'alias' in m: + cls._machines.append(m['alias']) =20 finally: try: --=20 2.54.0