From nobody Sat Jul 25 14:36:38 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1784276424; cv=none; d=zohomail.com; s=zohoarc; b=Ky4REEMu4O4P4I7GNXtTrNZ7mDrqh0SQKtKh3QG7BDp/Eg38ZHoa6+lZN5/C+7CWUnEddt9ddQbSM0w2dBtM0OwESex6trUlYbGB4DdpZANp+6kC3uhxjJCE7sKo2veQdZBSZukchWokCdkhu4TGHGw7AH9CD9iO71ZpR4+lfBo= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784276424; h=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=ipG1R7zqfI+4JcRWgtDSWVMaJatrSESmdCbgn9Vy14w=; b=LDV1u14g291/dvLvMEhhWx7V0ykMGRkGHGcyr3v2gE5xTPQIvVA/7fAkXs3BlQ+R52MYtxl/Psn0pO0BYdfJoEkP4RmFCNKt5FEYsnA1rbJmVMtUvmQlBzLsvHFJCY6f8fCX2saCdvQ6UxgYDxIqo+Qprikz4rcf1rHhtT9af+w= 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 1784276424335776.9059798484238; Fri, 17 Jul 2026 01:20:24 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wkdnP-0008G7-EO; Fri, 17 Jul 2026 04:19:47 -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 1wkdnN-0008DJ-Qg for qemu-devel@nongnu.org; Fri, 17 Jul 2026 04:19:45 -0400 Received: from mail-wm1-x32b.google.com ([2a00:1450:4864:20::32b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wkdnM-0000PV-AU for qemu-devel@nongnu.org; Fri, 17 Jul 2026 04:19:45 -0400 Received: by mail-wm1-x32b.google.com with SMTP id 5b1f17b1804b1-493d92b7db3so31594475e9.2 for ; Fri, 17 Jul 2026 01:19:43 -0700 (PDT) Received: from ip-172-31-13-20.eu-central-1.compute.internal (ec2-18-198-207-175.eu-central-1.compute.amazonaws.com. [18.198.207.175]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49549c96fecsm36504285e9.11.2026.07.17.01.19.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 01:19:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784276383; x=1784881183; 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:content-type; bh=ipG1R7zqfI+4JcRWgtDSWVMaJatrSESmdCbgn9Vy14w=; b=XWPoSyu8/h78kLNJdOKVdy3PI2g8+5fllaapYjuee6yKrXFMgIxD/vGKxIiofaw0+2 KhesyhAhq4AHzf7kgRAAEbTLnivD7clqgEfq5nvGYCPzG/I5Ook/+vu+rjybjQr/4wjz ucqIectM9f+sxOSW2IphFHMkw3bJuhSMNmDWCBfECg4Z8MO47x1LPS12BdiyFFbbDmXa U1fiibYUQJPexvLvGVmyPgyV7ecVhTwjWKpW92ZTVjRKp18DhpvF1C4PxCFZZodsBmnV Z79nWAmAiWpOkJ9ND1BLQ1tAJl8KugU9Dr1jMc2zQeWlBlGmYPKPr2/7dpo7Y/9WVs+u 8AJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784276383; x=1784881183; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=ipG1R7zqfI+4JcRWgtDSWVMaJatrSESmdCbgn9Vy14w=; b=EIBcH++GkwbYmrJm9LxRrmuTTRg/yHZ8AoYiwiw2RCLzK/rh8c8BVfhMyhR9vyTLQz z+bx8m4XruHkX2tqG+pWkgAfBt9eR+b3UZd/9TUv7k/SK8LxSraDif2Dl13arTrxmSEA MUNICgLy0xOLBf0MK4BxcL1aBy8rjGtJ1/hl4jfeJZxdHAEloeW2Mu8C2bbh7p+YoI0H f3EvQDCLVJI8RII27ZDtUj8BqSmCWqafn81NNPvjzZ/PQvCV/e2o6QnnkNHLztEIKwoQ Ikxc/6NiFCWl5s3r0qj8yt9m0i3AAGVR7c3rn/AX5GEooHwY3frqAT2CEuz8lnjQITLh hgPA== X-Gm-Message-State: AOJu0YzCgS6uQsohh3REg8B4Xf0Iz1VE+SNkyWDJB9/0kZPk3yfm/8ec UrsLqqWnFbjyKPhxe3c7CJ8mO66j4+26hS3mqkq9JVJMakfxfni4gZssGdV0jprnuqg= X-Gm-Gg: AfdE7cnUHel20Krp1GKl6Gj37VjuOAzepjYJAZPYkrX+QQNAXmdco8cTs6HVy3fgT6W zGqO4nSpVR+7nbQhBQWEki7RhK6/K4Jv5DTlYQ9a40i7maOYAwkAyZywygnCA89Nk0uGjJ6cMDM gwy/j610X2epc2QY5s7nuQXze296/4+kIBOAMYm0r2pPYrJs7Eo7+2QGaycvPZl7v/624Dr1zAU a2uF6UYSs7F1/hFsaulf3dOjUMV8QIavUXdOkB0vjQgfKjp2dzKHtqyUERQAzTcwPo5GdkxMqJ2 RqSC2WjkAtyVjJRsplNoy0VOeHgiGbjwabuZqDZrP9Cui81z0SnUqXzp4gHctKH9TWtcRR1CEob 9/cUbiygh6TLdNfS+3uiJ1Ou0luBKSU6xkbfJH2/Etv0oCqC/aVNuP6AhZCglY3N0h+Bss7FfKd xPS73P61ynFFdBvy09feZz47rViUwlWXKcoElmAufcewfA7FoKKBLqfwthnKwg0HUBr/7XXQel4 If9qtTuhInwnF7LbXtsEWwSHW/hLgZOn3isKIQnYzDq5p+pKHA= X-Received: by 2002:a05:600c:a47:b0:493:e38b:182d with SMTP id 5b1f17b1804b1-4954a4114a3mr17222855e9.22.1784276382349; Fri, 17 Jul 2026 01:19:42 -0700 (PDT) From: Rohitashv Kumar To: qemu-devel@nongnu.org Cc: Fabiano Rosas , Laurent Vivier , Paolo Bonzini , Rohitashv Kumar Subject: [PATCH 1/3] tests/qtest/device-plug-test: skip pc tests when 'pc' machine is unavailable Date: Fri, 17 Jul 2026 08:18:34 +0000 Message-ID: <20260717081845.2439849-2-rohit.kuma1313@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260717081845.2439849-1-rohit.kuma1313@gmail.com> References: <20260717081845.2439849-1-rohit.kuma1313@gmail.com> 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=2a00:1450:4864:20::32b; envelope-from=rohit.kuma1313@gmail.com; helo=mail-wm1-x32b.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, 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 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 @gmail.com) X-ZM-MESSAGEID: 1784276425410158500 Content-Type: text/plain; charset="utf-8" From: Rohitashv Kumar test_pci_unplug_request() and test_pci_unplug_json_request() use "-machine pc" on i386/x86_64. When QEMU is built without the i440fx/pc machine, these fail with "unsupported machine type 'pc'". Skip the x86 case when 'pc' is not available. Non-x86 architectures use the default machine and are unaffected, and x86 unplug coverage is still provided by the q35 variant (test_q35_pci_unplug_request), which already guards on qtest_has_machine("q35"). Signed-off-by: Rohitashv Kumar --- tests/qtest/device-plug-test.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/qtest/device-plug-test.c b/tests/qtest/device-plug-test.c index 2707ee59..650956fa 100644 --- a/tests/qtest/device-plug-test.c +++ b/tests/qtest/device-plug-test.c @@ -65,6 +65,10 @@ static void test_pci_unplug_request(void) } =20 if (strcmp(arch, "i386") =3D=3D 0 || strcmp(arch, "x86_64") =3D=3D 0) { + if (!qtest_has_machine("pc")) { + g_test_skip("Machine 'pc' is not available"); + return; + } machine_addition =3D "-machine pc"; } =20 @@ -107,6 +111,10 @@ static void test_pci_unplug_json_request(void) } =20 if (strcmp(arch, "i386") =3D=3D 0 || strcmp(arch, "x86_64") =3D=3D 0) { + if (!qtest_has_machine("pc")) { + g_test_skip("Machine 'pc' is not available"); + return; + } machine_addition =3D "-machine pc"; } =20 --=20 2.47.3 From nobody Sat Jul 25 14:36:38 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1784276403; cv=none; d=zohomail.com; s=zohoarc; b=iVCloI72XZ9zaeNzcHFJiQjkTYkRF4smKwWAj4BuveuWiIAAbsCOyvB1IQqSP6ENP+2dEM0UC2fZLCTNhuSrKszQwKD5Hcszbsh/vvFtcfI04RWU7I6rKVPJvQNX41PBh1xKHrSRKzFmkaach17RYpU9v2mm78jK66kvWv+Jrk8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784276403; h=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=nLGpY643O2jZqKfla4Bau/QPP9FMH2aQ3gASY/wfNjE=; b=gYo6m9AmzJGUVa6BJFwNlfmJG2yTIGaPQ15ZKBLZuyCUUUfOG6KTtvQ2G84Zz8NcPkp4NMF8LK4M8sLdMn5jki+TBSDm+GfNkHlxiiiUbRWeKtl25SMZ+6fX12SiIBQKxY/0hfKhbS1OHiDQ3490oW0yE6hLoYl1Qi/4E/UAGlY= 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 1784276403728413.0354837420907; Fri, 17 Jul 2026 01:20:03 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wkdnW-0000NX-Ta; Fri, 17 Jul 2026 04:19:54 -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 1wkdnU-0000A0-VI for qemu-devel@nongnu.org; Fri, 17 Jul 2026 04:19:52 -0400 Received: from mail-wm1-x333.google.com ([2a00:1450:4864:20::333]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wkdnT-0000Pm-DC for qemu-devel@nongnu.org; Fri, 17 Jul 2026 04:19:52 -0400 Received: by mail-wm1-x333.google.com with SMTP id 5b1f17b1804b1-493d92b7db3so31595085e9.2 for ; Fri, 17 Jul 2026 01:19:51 -0700 (PDT) Received: from ip-172-31-13-20.eu-central-1.compute.internal (ec2-18-198-207-175.eu-central-1.compute.amazonaws.com. [18.198.207.175]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49549c96fecsm36504285e9.11.2026.07.17.01.19.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 01:19:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784276390; x=1784881190; 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:content-type; bh=nLGpY643O2jZqKfla4Bau/QPP9FMH2aQ3gASY/wfNjE=; b=rYMhiDZIiO8qs1tNV5gibG+2bqWZGBwSzVlgkYQUy8YiNPAIRX4U7GQi8PCJd7/JWQ Vl94WNeOrTII5TT350ZvR/nBjeVA4A6szxL/Ht8+vCeMAV7Rhww0zTBYIDN3Dl+7k0qA 5lbrRFD/FRu9JauIkLgYG8h88Q8CrVD2S9Mg1ORw24V9El0Vdmjby96gdpYdqk+XwFAE kmhcHvMFs0xDSPE9AERY5jELtSlQ9LJ5ejJaZsTTNUV8o2sSk7KDH52C0HAPKsky6rvY KHQzcKUaMw0JU3H5gK5gn1kYDhIVxye9vWUcV0RVhUQYHBDpp7zQfFiXKxqCAYV4CopU OU5A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784276390; x=1784881190; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=nLGpY643O2jZqKfla4Bau/QPP9FMH2aQ3gASY/wfNjE=; b=BYMfoALS0caQfS8I8EIJgnXcxDcdeXJKN2k0CzjCkWsH+eGbVDRTbUN65DaPpFxwen JtkDsg8DE+yKwGdebXXjXxXQYrnYftCXWdiVkvGf5ebrwE6w4LfPP1xtJnDdAi1PuNvZ 63h7ZLpEQ9hxI+vEPd27pfx4Bl4IYF7BGjSLK5ERs3AY1qPFyWRDJMhjQexjRTOKot1O CYqr96iSTBZXafQEmhXDQSYp0NArQ7vqQhCkgdBQrK0rCoETUb1uwncF2s3/tiG27IAH TrnPJCrTFuCVLfHJoA06tJ7iKx9YMsRQHjmrDjQ8Oo7pcfB4Xf+4HPSCxpmt5c77kORa ML+A== X-Gm-Message-State: AOJu0YwoHDf4sfQqGmumU3R2yq/wj1jZSFFDYA+VnQxWnGpO/90We04x cq22PhS9wI+4KS2/AwqckhtnK9ZQBnWSbeUF5LEOnjrc3Jv7hhD0/tKgOPsfGvVbZlk= X-Gm-Gg: AfdE7cni73ikJ+Vp4o+ojGdU5iBGmTbR0JNT1paXbtUwFZm22kngmBsUaa+gwMNmmt0 NTwOfAsD9fg6lMYVfSvtGVhI6QxktO1H+bMuiYvpFuyfm+45L7o7M0eBbcu35iJP9HOa6NTZ8/q bjTt2L/WrYOTSIG8B2jVxhqybjI+nK8sLvtxQceGEWp8Kvw4efH6+ZNwsFqbecpPpUBYJXRYz1v I1L8T4zet0lSeWFVhiegesYcxhYF4llxe6+fLvON9vpuCqq92LWSgEyXMmPRZEaqe4vdapda5z2 IilM/jTQ7BWuWjclejdYMGg00tdAQbWxLc4Yoz4ZJ3bYfdZmKy+vKB5hOy+zh/74+f3LnRiUZWt 4TtcJLx24rLiAJApAXrf5D3LOMOHlh1TzZbn6URTGJ9UQPEIfiZQglF7ZfAGFexGCfZDtUWVKK3 EBvN9EBleUPXVMIp4X0toX/3hrNhjMkFTsPcC8PZHPhLQCaW3Df0af6Rj7+LtKKdW1784xDz4zY RiSa3O1XjtJBNWjESWE5nYu/dq1GVdTMh+5pcL/cTEf1y3UrM0= X-Received: by 2002:a05:600c:4692:b0:493:bcef:565c with SMTP id 5b1f17b1804b1-4954a3e6dd1mr16862565e9.1.1784276389415; Fri, 17 Jul 2026 01:19:49 -0700 (PDT) From: Rohitashv Kumar To: qemu-devel@nongnu.org Cc: Fabiano Rosas , Laurent Vivier , Paolo Bonzini , Rohitashv Kumar Subject: [PATCH 2/3] tests/qtest/drive_del-test: skip pc tests when 'pc' machine is unavailable Date: Fri, 17 Jul 2026 08:18:35 +0000 Message-ID: <20260717081845.2439849-3-rohit.kuma1313@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260717081845.2439849-1-rohit.kuma1313@gmail.com> References: <20260717081845.2439849-1-rohit.kuma1313@gmail.com> 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=2a00:1450:4864:20::333; envelope-from=rohit.kuma1313@gmail.com; helo=mail-wm1-x333.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, 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 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 @gmail.com) X-ZM-MESSAGEID: 1784276405760158500 Content-Type: text/plain; charset="utf-8" From: Rohitashv Kumar test_cli_device_del(), test_device_add_and_del(), test_drive_add_device_add_and_del() and test_blockdev_add_device_add_and_del() use "-machine pc" on i386/x86_64. When QEMU is built without the i440fx/pc machine, these fail with "unsupported machine type 'pc'". Skip the x86 case when 'pc' is not available. Non-x86 architectures use the default machine and are unaffected, and the corresponding _q35 variants already cover x86 under qtest_has_machine("q35"). Signed-off-by: Rohitashv Kumar --- tests/qtest/drive_del-test.c | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/tests/qtest/drive_del-test.c b/tests/qtest/drive_del-test.c index 30d9451d..4c32da59 100644 --- a/tests/qtest/drive_del-test.c +++ b/tests/qtest/drive_del-test.c @@ -258,6 +258,10 @@ static void test_cli_device_del(void) } =20 if (strcmp(arch, "i386") =3D=3D 0 || strcmp(arch, "x86_64") =3D=3D 0) { + if (!qtest_has_machine("pc")) { + g_test_skip("Machine 'pc' is not available"); + return; + } machine_addition =3D "-machine pc"; } =20 @@ -332,6 +336,10 @@ static void test_device_add_and_del(void) } =20 if (strcmp(arch, "i386") =3D=3D 0 || strcmp(arch, "x86_64") =3D=3D 0) { + if (!qtest_has_machine("pc")) { + g_test_skip("Machine 'pc' is not available"); + return; + } machine_addition =3D "-machine pc"; } =20 @@ -403,6 +411,10 @@ static void test_drive_add_device_add_and_del(void) } =20 if (strcmp(arch, "i386") =3D=3D 0 || strcmp(arch, "x86_64") =3D=3D 0) { + if (!qtest_has_machine("pc")) { + g_test_skip("Machine 'pc' is not available"); + return; + } machine_addition =3D "-machine pc"; } =20 @@ -456,6 +468,10 @@ static void test_blockdev_add_device_add_and_del(void) } =20 if (strcmp(arch, "i386") =3D=3D 0 || strcmp(arch, "x86_64") =3D=3D 0) { + if (!qtest_has_machine("pc")) { + g_test_skip("Machine 'pc' is not available"); + return; + } machine_addition =3D "-machine pc"; } =20 --=20 2.47.3 From nobody Sat Jul 25 14:36:38 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=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1784276418; cv=none; d=zohomail.com; s=zohoarc; b=J+Feh99ogTv4zDQESVgcMqAD30lZfvyms4VwcEOqkPoGoDD4t0OLMUZmrwcRostMdWdou1nq058OK6fga2WnrNBR7suE2sKLbnPcXrr5LiwUzqSXSfULwjzIAFL4HrYhE7Nmsu5gGpgBXCiOcdgV71FV9Dz56ayWINQ/xacXpDI= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1784276418; h=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=AMyx0DRZia3gkeQOWV8JRcpXn8R5O7JzvvSEQ/cE2cg=; b=n7wPs/57Xaus6vwddtrSY+Vh2RvWnIhC38oSrZ6d9GRrKCsIyn0sTlaVGEnAfe1IP9DwPkkZ6I0w/+6PSYy94Zxa5DwI/DJ0Nb2BVJ5opjxj5AHMBzAL/9dUeyDRlBCvJcjowgGZQCF2G8zvQAflAxVdaDSBWf9XFXhqM/gGNHw= 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 1784276418616512.4967088223034; Fri, 17 Jul 2026 01:20:18 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1wkdnZ-0000ZW-NQ; Fri, 17 Jul 2026 04:19:57 -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 1wkdnY-0000Vs-Bm for qemu-devel@nongnu.org; Fri, 17 Jul 2026 04:19:56 -0400 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1wkdnW-0000QN-VW for qemu-devel@nongnu.org; Fri, 17 Jul 2026 04:19:56 -0400 Received: by mail-wm1-x335.google.com with SMTP id 5b1f17b1804b1-493ec555a26so49294785e9.0 for ; Fri, 17 Jul 2026 01:19:54 -0700 (PDT) Received: from ip-172-31-13-20.eu-central-1.compute.internal (ec2-18-198-207-175.eu-central-1.compute.amazonaws.com. [18.198.207.175]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-49549c96fecsm36504285e9.11.2026.07.17.01.19.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 17 Jul 2026 01:19:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1784276393; x=1784881193; 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:content-type; bh=AMyx0DRZia3gkeQOWV8JRcpXn8R5O7JzvvSEQ/cE2cg=; b=oYtLPAZbzJT+9gN9byzDeuCsKHV3KoDM+xCdx0NzEzxXrVCMQxxMl9uAZUGS5CoQKj SfjXFmJBPvGrPMT3CBUgz6WW+9Wsopm8InLmuNrJBjtwOw/2aR6HFblBU653sqqNz9XU MDzWYY2p7dvjCAszqn8LXzj0HtkQyQsHi/bgeD10HSl5ncK9fS9/FMguM+j8HDzt/UHS KsbwfFGhGGA62me6uUF2vhwC7AqtBGICNOhgPaPOjviwaCvruAl5RDT3sbZqLKsny70x qtbCg9WJ9hZiius2D7kTnvMDwvNSxUDHYdS+YLcUBvZL7VQErvWvsAzCJs1E6PTGLc4S J6lw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1784276393; x=1784881193; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=AMyx0DRZia3gkeQOWV8JRcpXn8R5O7JzvvSEQ/cE2cg=; b=aLSf5kgmp7fxeVU1VXHNlUWt3eNTmaW+dpNzjRQCsvIEOo0K9huclEixTx4xs6xQVc y/CVinYLGYBs2Qcn2kyweMtsgsKSPn19xhgoJ/yZ9aYIbo6sFFpwPIuTpfmdrki2jKol U0GgjaBoKkdXzfkvC+/kBCAF99vyahHF+qOUxd6RRvlCHIm6mzNlkj9ChTdvhC0EvaHD i9PUtvIVliKPwV1JqtN0R9fqOttxFlI0wtMASOjbikRX7Fm/OgDBE2TS1OZnyqoQRObI KWsgzBkui5r6ESFbogYDLbCMwbX81NDkHimnpFR/5uoPKhufXXkP4YzTiCdjYUep8aD5 /PcA== X-Gm-Message-State: AOJu0YzNPsZxPpVUqjrdluhdIQxT9BetZMadAPEyEIcGcCgvhtIhRt9t dpUSxGTuza8iMekVgab4FcyozGm11nKxJVFihujVgZvP6d2NVn7LSv9twupd8S4IykY= X-Gm-Gg: AfdE7cnlkIEFhqu+7M4BQpplFN4mvpVGWWPgZJ+YtZhbzqUT9SyswdsHPNAeYFCM1MF OMAGt34YLBgPm2ZxwiAgEO2DLZvH/yCQ72sqUfpsAgqWti+627xhwgPjzwcrj9Wq8SOmdpPWijt L7RnCPZrYO3EUBTThO4ZtZ3uaPwxXX16dhfDqfbzz694JxtK1vz5W2+ws7lRyvKv5vVjoekaz4k dFVqrepAovp+CreC90dSPUraTPM7grX4LQ9CPtKa9gooLTns0ZyK4TqbveE8id0EDeoks+VxSK7 Y/zjqCTqpjvb11KuZtZSGaOpekrm1fq5KCuWHBo/luQKfYNEQbZeuUDKoJLa8t2u1n4Yv5fdn4Z RtTGoENbbrTq6tMutjUzq0pt8GO3xQy5RkNABXWdDfnJv6ejjLCIxj/0rNbHHMdOp7Y9jxxqeWn CfPbpkmuva0bd6uFYMJBqaSZnaU/Yg8KSkhXTgRjR9PxCG3gVgv1dghkSSsDznektUcF4Jd4IZz ttbD0eLRcQrPl/Bi4UmKG877cuIBvn2TK/vKyIa2GYnso23OFk= X-Received: by 2002:a7b:c4da:0:b0:493:bd71:6084 with SMTP id 5b1f17b1804b1-4954a50bcd9mr11043785e9.31.1784276393059; Fri, 17 Jul 2026 01:19:53 -0700 (PDT) From: Rohitashv Kumar To: qemu-devel@nongnu.org Cc: Fabiano Rosas , Laurent Vivier , Paolo Bonzini , Rohitashv Kumar Subject: [PATCH 3/3] tests/qtest/pxe-test: skip per-row cases whose machine is unavailable Date: Fri, 17 Jul 2026 08:18:36 +0000 Message-ID: <20260717081845.2439849-4-rohit.kuma1313@gmail.com> X-Mailer: git-send-email 2.50.1 In-Reply-To: <20260717081845.2439849-1-rohit.kuma1313@gmail.com> References: <20260717081845.2439849-1-rohit.kuma1313@gmail.com> 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=2a00:1450:4864:20::335; envelope-from=rohit.kuma1313@gmail.com; helo=mail-wm1-x335.google.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.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, FORGED_GMAIL_RCVD=1, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 @gmail.com) X-ZM-MESSAGEID: 1784276419462158500 Content-Type: text/plain; charset="utf-8" From: Rohitashv Kumar The x86 test table mixes 'pc' and 'q35' rows. When QEMU is built without the i440fx/pc machine, the 'pc' rows fail with "unsupported machine type". Add a per-row qtest_has_machine() check in test_batch(), mirroring the existing per-row qtest_has_device() guard, so rows for an unavailable machine are skipped while the others (e.g. q35) still run. Signed-off-by: Rohitashv Kumar --- tests/qtest/pxe-test.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/tests/qtest/pxe-test.c b/tests/qtest/pxe-test.c index a3f900fb..e85dec5a 100644 --- a/tests/qtest/pxe-test.c +++ b/tests/qtest/pxe-test.c @@ -108,6 +108,10 @@ static void test_batch(const testdef_t *tests, bool ip= v6) const testdef_t *test =3D &tests[i]; char *testname; =20 + if (!qtest_has_machine(test->machine)) { + continue; + } + if (!qtest_has_device(test->model)) { continue; } --=20 2.47.3