Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 22BFDC43458 for ; Sun, 12 Jul 2026 10:54:10 +0000 (UTC) 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) 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== 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) 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: 8bit 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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org From: Vladimir Sementsov-Ogievskiy Aliases are not handled, and that's why tests used them are skipped, like this: PYTHONPATH=python:tests/functional \ QEMU_TEST_QEMU_BINARY=$PWD/build/qemu-system-x86_64 \ MESON_BUILD_ROOT=$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 machines") Signed-off-by: Vladimir Sementsov-Ogievskiy Reviewed-by: Philippe Mathieu-Daudé Reviewed-by: Daniel P. Berrangé 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 = tmp_vm.qmp('query-machines') machines = resp.get('return', []) - cls._machines = [ - m.get('name') for m in machines if 'name' in m - ] + cls._machines = [] + for m in machines: + if 'name' in m: + cls._machines.append(m['name']) + if 'alias' in m: + cls._machines.append(m['alias']) finally: try: -- 2.54.0