From nobody Sun Jul 12 00:42:44 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=yandex-team.ru ARC-Seal: i=1; a=rsa-sha256; t=1783674209; cv=none; d=zohomail.com; s=zohoarc; b=erKIdYB6LgE1TpWMs+TopN2Mzv/rjzN5pI1/68yuOkFKgxJJGXD0X6LNb/GCVchVKquSPFcQLdzbDsdUg5uuuIpe4lYdaGMbD2saF+Psf6bfI4bLtdC/H7xjUplLrUrq9cJrkkx9NTCy/80SUJTD8o4Y5mYCCM+zs6lbuqx85Q8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1783674209; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=y5HOw/pRURtCSTPSTYg91kd3kw+Qf97rHi8QYCK4Xwo=; b=kIj2RFGHolkFZqiouQTbR1o4tQ/y2ehWjUodz8+XDmpCrbO4DV45f6jukKsXUVV+7WR8mLGhbeMMyBBPC42t+J7cuLYqJ+/zz73865MdarAhjE8hU624a3LiR6WeZ9w2heKV9E2fnSvB455eEnrYsGa7Z/WXotDAazaKgpdPXWg= 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 1783674209376371.5224324603581; Fri, 10 Jul 2026 02:03:29 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wi78n-0001Qp-Kv; Fri, 10 Jul 2026 05:03:25 -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 1wi78m-0001QH-2L for qemu-devel@nongnu.org; Fri, 10 Jul 2026 05:03:24 -0400 Received: from forwardcorp1a.mail.yandex.net ([2a02:6b8:c0e:500:1:45:d181:df01]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1wi78k-0004Pf-E2 for qemu-devel@nongnu.org; Fri, 10 Jul 2026 05:03:23 -0400 Received: from mail-nwsmtp-smtp-corp-main-83.vla.yp-c.yandex.net (mail-nwsmtp-smtp-corp-main-83.vla.yp-c.yandex.net [IPv6:2a02:6b8:c2d:3530:0:640:eca4:0]) by forwardcorp1a.mail.yandex.net (postfix) with ESMTPS id 3030BC0A9C; Fri, 10 Jul 2026 12:03:21 +0300 (MSK) Received: from i115954770.yandex-team.ru (unknown [2a02:6bf:8080:167::1:39]) by mail-nwsmtp-smtp-corp-main-83.vla.yp-c.yandex.net (smtpcorp) with ESMTPSA id K3H7hF0XHGk0-P2KjQKS3; Fri, 10 Jul 2026 12:03:20 +0300 X-Yandex-Fwd: 1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex-team.ru; s=default; t=1783674200; bh=y5HOw/pRURtCSTPSTYg91kd3kw+Qf97rHi8QYCK4Xwo=; h=Message-ID:Date:Cc:Subject:To:From; b=buTHyWNO0F92p9cFUNXd2tYtDMLrS3gCkB+bAc5ULwFXBcRln5P2rXfwjuqpdfM+x fR4QwzdI1R6cQvzKX3O3+larj8+C5fkVGl5c/xxCsWO7PT5QKbnIEKOLGxvLpUlPEU FWsJC0tbktFWrZyFYgqqX8NV9C1hXa1EiJHK01sI= Authentication-Results: mail-nwsmtp-smtp-corp-main-83.vla.yp-c.yandex.net; dkim=pass header.i=@yandex-team.ru From: Vladimir Sementsov-Ogievskiy To: th.huth+qemu@posteo.eu Cc: qemu-devel@nongnu.org, berrange@redhat.com, philmd@mailo.com, ganeshredcobra@gmail.com, vsementsov@yandex-team.ru Subject: [PATCH] tests/functional: fix querying available machines Date: Fri, 10 Jul 2026 12:03:17 +0300 Message-ID: <20260710090317.498350-1-vsementsov@yandex-team.ru> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 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=2a02:6b8:c0e:500:1:45:d181:df01; envelope-from=vsementsov@yandex-team.ru; helo=forwardcorp1a.mail.yandex.net X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, 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 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 @yandex-team.ru) X-ZM-MESSAGEID: 1783674211640158500 Content-Type: text/plain; charset="utf-8" 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: Daniel P. Berrang=C3=A9 Reviewed-by: Philippe Mathieu-Daud=C3=A9 --- 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 4912a47a464..e4179d165c0 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.43.0