From nobody Sun Nov 29 02:09:49 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=1795719830; cv=none; d=zohomail.com; s=zohoarc; b=fD+iefz1Jm/dre93QJLjfy+MfCkUrbrOVlmnBdOeUILwZR/L6vrRltZ4TIie3bUfzmQEpfTBmSKfz0m9PfqTwglZKA1u33jN2aG70wE3jyAPZASzmDthB8XG8460LI+ahkPqjIT9ULHIaCCm4QzgKGdGrEeCK9o+e7QaPM1jkXU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795719830; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=31yVhEX4jokYorPxCKoj2vIdTS7vM3ARNGO1RFm+TF4=; b=WdK5Hx3BniAWSNm9KyqO8Ex5At6bDHNzM161V2Hc9uVP3queRl3cYYkXX/ibUSPUVd2HMBMamgNGvkGKZWc8f5BU3bYUv84yhNpndtYvDxZOoNzyfb7GdXIjM3Ga6pEEFCd71nWjqppaVF1v+lu6lAEBQMQjUxpFd44r6H1nahU= 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 17957198303730.7312397576189369; Thu, 26 Nov 2026 11:03:50 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xWejh-0008Jg-F9; Thu, 26 Nov 2026 14:02:25 -0500 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 1xWej5-00081w-Px for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:54 -0500 Received: from mail-ej1-x62c.google.com ([2a00:1450:4864:20::62c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xWej0-0005CG-FJ for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:44 -0500 Received: by mail-ej1-x62c.google.com with SMTP id a640c23a62f3a-c50e26763a4so251863066b.1 for ; Thu, 26 Nov 2026 11:01:41 -0800 (PST) Received: from tulp.my.domain ([2001:1c02:1a15:3000:2727:f7d1:9628:aa81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae6663esm786278766b.21.2026.11.26.11.01.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 11:01:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795719700; x=1796324500; 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=31yVhEX4jokYorPxCKoj2vIdTS7vM3ARNGO1RFm+TF4=; b=G+gW4Lp3NKcO1gKcP3xzq5FeMGiDyvxuOyPVVVOv/tubPLMf1yMM0nvwcg0p6uvRg4 c6R9+rnn8+sTb9U27S6a4d/LIk6QNCgooCqzyWK4woKdXuDaJJUdM7HTgOE5r0EGkYUn GjBLMu4UFHPDNmHmLe+Lt8n8z3ig4+AV4MZuv9r72LG+KrBJdy8sBC2BODuuv4rYyU1n qCVb3sPoGaveAcBm2uw6zwHsm2rCMzkPk00AoQDqUDaqTpZfc4DB+1Va7VJNTuwk2YxF sHE2feqSUoxOo6kzgRH4nveZK1oPSOWVwjbmjpErIjmc/5nFOzs6VhK2UAThiMijMqV4 1hsA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795719700; x=1796324500; 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=31yVhEX4jokYorPxCKoj2vIdTS7vM3ARNGO1RFm+TF4=; b=ZdRwmT4LVHT35E7pIKFu5kA58jPFv/EAfYtVcCbnt9icfWfnTxgXPWPn9s9Xim9fNt +xRLFQBwUR+vwtcPw0e1FumaT+qF/y8BJWo8L99QVyyu/BLHgSCR79hUsVxnp2hjhAAA wZnAZUj+8XjHc2GMKqxXE4BUNioCfRVVWlHfQfFumUGjSh6KgA3e+HmeJFYXigw2R8v0 xDc+5kxj30zaD5Bx95+QFum4YQUd34MFs5UCcZb+QuNWipjf91iU7eauNrWhzXn42PTU 15hWLhM9k+DhJvlgKW6Q+ovHNcQu4H6Z9OUBJMO6/kvud0AkZGAzDwGv2p4MitW8quUy fsAA== X-Gm-Message-State: APuU4Z9/Q1N8f9oLDSkf67/+CneWwwe4r3VdT8/zuj3cSNYUNU/XH9bn AgjnaIAk9p/GCrH7agjWfrnhWCQFdJNhdYql64Gqw6jbrNsZGJlUOIaK4yttEcPtIgc= X-Gm-Gg: AZFdTZf9I9m+3VSkPfabuOoNUpFzjhgGWungq4ynFv2L54e5MUrqp3l+xBqtyty/NgO mlN1RtS+nd0nIHecdIa0wLoVTsfJUH5nAyXU0cPXR6qW1G5r4z945hkYZ3mQ+0zEO/wFoYYr56m m74qgE7VscaqRZqKsI8PeudUpPkK1dlSnP0r+2oky/lLbNl64x8LBj5CDd/GCgTquIIipHuvr1U dnLQk7OBfdjsPuiSotQEY8OGI2XU8nhs7LpwxUB2FNM7rXHIWGU8cvQS57j3XCI6DO1H3DFySuW XS6zIVo60IuZrlAZASPnVOjF3doTupOCaTk2rzmXKg4HB36P+JVa1YmP8f/urrAV30lKgIqk6n9 4Teu1j1BlWhFatkc+uEH5sQepOJX1Ge9BmTaj4PvdxZ21ZnMleiFlDSWgW+DCUwcXtIlUmgQIEF VPU01E6se07HaSey/E5EXLQatM0YEaCHgPtu9VX59NAw4XlmAPgcOQRiwKBQtM1tZV3wPLIlv8Q pgkrc/k1O7EihqH4lAiLmJNFf03OXL+9gOaQvSLRACkWXw9DbRWrgcLY1ygnVJZ+Dte9KiBYlFm KhMr2eLbkgJ6zD9+jRKBrtDMVzcEy7i6OGwe X-Received: by 2002:a17:906:785:b0:c50:5e10:71b3 with SMTP id a640c23a62f3a-c513a999557mr1435778666b.10.1795719700059; Thu, 26 Nov 2026 11:01:40 -0800 (PST) From: Roman Bogorodskiy To: qemu-devel@nongnu.org Cc: Roman Bogorodskiy , Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org (open list:Block layer core) Subject: [PATCH v3 01/10] iotests: use gsed when necessary Date: Thu, 26 Nov 2026 20:00:44 +0100 Message-ID: <20261126190054.40844-2-bogorodskiy@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261126190054.40844-1-bogorodskiy@gmail.com> References: <20261126190054.40844-1-bogorodskiy@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::62c; envelope-from=bogorodskiy@gmail.com; helo=mail-ej1-x62c.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, 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: 1795719831718158500 Content-Type: text/plain; charset="utf-8" Some iotests fail on FreeBSD because the tests call sed directly, and BSD sed is not always compatible with GNU sed. As common.rc already provides the gsed() wrapper, use it instead if needed. Signed-off-by: Roman Bogorodskiy Reviewed-by: Mohamed Mediouni --- tests/qemu-iotests/115 | 2 +- tests/qemu-iotests/common.filter | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tests/qemu-iotests/115 b/tests/qemu-iotests/115 index 5c8a12f85a..e3ff91de7a 100755 --- a/tests/qemu-iotests/115 +++ b/tests/qemu-iotests/115 @@ -78,7 +78,7 @@ _make_test_img -o "refcount_bits=3D64,cluster_size=3D512,= preallocation=3Dmetadata" 256 # qemu-img check for that purpose, too. =20 $QEMU_IMG check "$TEST_IMG" | \ - sed -e 's/^.* =3D \([0-9]\+\.[0-9]\+% allocated\).*\(clusters\)$/\1 \2= /' \ + gsed -e 's/^.* =3D \([0-9]\+\.[0-9]\+% allocated\).*\(clusters\)$/\1 \= 2/' \ -e '/^Image end offset/d' =20 # (Note that we cannot use _check_test_img because that function filters o= ut the diff --git a/tests/qemu-iotests/common.filter b/tests/qemu-iotests/common.f= ilter index ce4213cb97..f7211a0a29 100644 --- a/tests/qemu-iotests/common.filter +++ b/tests/qemu-iotests/common.filter @@ -130,7 +130,7 @@ _filter_actual_image_size() # Filename filters for qemu-img create _filter_img_create_filenames() { - sed \ + gsed \ -e "s#$REMOTE_TEST_DIR#TEST_DIR#g" \ -e "s#$IMGPROTO:$TEST_DIR#TEST_DIR#g" \ -e "s#$TEST_DIR#TEST_DIR#g" \ @@ -296,7 +296,7 @@ _filter_qemu_img_map() data_file_filter=3D(-e "s#$data_file_pattern#\\1#") fi =20 - sed -e 's/\([0-9a-fx]* *[0-9a-fx]* *\)[0-9a-fx]* */\1/g' \ + gsed -e 's/\([0-9a-fx]* *[0-9a-fx]* *\)[0-9a-fx]* */\1/g' \ -e 's/"offset": [0-9]\+/"offset": OFFSET/g' \ -e 's/Mapped to *//' \ "${data_file_filter[@]}" \ @@ -310,7 +310,7 @@ _filter_nbd() # receive callbacks sometimes, making them unreliable. # # Filter out the TCP port number since this changes between runs. - sed -e '/nbd\/.*\.c:/d' \ + gsed -e '/nbd\/.*\.c:/d' \ -e 's#127\.0\.0\.1:[0-9]*#127.0.0.1:PORT#g' \ -e 's#localhost:[0-9]*#localhost:PORT#g' \ -e 's#host=3D127\.0\.0\.1,port=3D[0-9]*#host=3D127.0.0.1,port=3DPO= RT#g' \ --=20 2.56.0 From nobody Sun Nov 29 02:09:49 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=1795719771; cv=none; d=zohomail.com; s=zohoarc; b=K0LHou4he0XimMPlSFDGcRpWJ0GmqFy2JfxYUW9yGTQGZnVL8oz61YT1sFNo4UuA8o+E4mpOW7qVFcZiRCJrs6YbCXGWxgW5dH61Hyi0P8YmCvxU7RPGoNrZIp048OPytdht4JVzx4OH2LqlRwY1xuvownU0jhGUL817CiYsWSE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795719771; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=WN1rCG6mClYmHNqS52MkrcTgJAqMF/VV1B9Wwnzg+8o=; b=OXn2RMcK7x3tKYksqRk0O//IKIE9wsl3hhXVoY+sgWeIqyHyw88kv4aggApyGEX4C07rzL5QrXwcr61BY8zt9qXCzx7B4hGudCtRIOr1L60dOjcxJeWA1xIa2CV5Jy8RUjoki6nrmmf3k2rlKH/NcZacjsmXMiaMYSUB4ujiXns= 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 179571977166332.539142306532426; Thu, 26 Nov 2026 11:02:51 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xWeje-0008Cc-Jh; Thu, 26 Nov 2026 14:02:22 -0500 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 1xWej5-00081x-Pr for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:51 -0500 Received: from mail-ej1-x62b.google.com ([2a00:1450:4864:20::62b]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xWej0-0005CL-K9 for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:45 -0500 Received: by mail-ej1-x62b.google.com with SMTP id a640c23a62f3a-c5126505cb3so957654866b.0 for ; Thu, 26 Nov 2026 11:01:42 -0800 (PST) Received: from tulp.my.domain ([2001:1c02:1a15:3000:2727:f7d1:9628:aa81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae6663esm786278766b.21.2026.11.26.11.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 11:01:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795719701; x=1796324501; darn=nongnu.org; h=content-transfer-encoding:content-type: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=WN1rCG6mClYmHNqS52MkrcTgJAqMF/VV1B9Wwnzg+8o=; b=uQusW85a0xP4x4vuIg05WS7kGxAWujIZiqRWwJVdMHboabUgz8GYvzMw8aHIoHg2PT ntTf9142qvM/FxD14Zfvqx0hxL0GNcCumHHzvOM2meDlFqhCkJsoHnzqTsraHSsbEZhh HnTjPbmVAd5FH86ODiyqfb2wBorZQSed0jZ3ndl0v/oGITwSI++GIlZB1IXMM/GISCYW Uq047dVcmREYsFUOozjdDbVMHiz3u0ym/ssMLZdAZ/GISeWgHbbBRfHQJzZALrYTHQUa rJAqeUksiyzM9af/mWiGGFNVnD3FGLl8+EahRynVTajFMPVqPxB4BoQrNg+7FyP/e2CA BgZw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795719701; x=1796324501; h=content-transfer-encoding:content-type: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=WN1rCG6mClYmHNqS52MkrcTgJAqMF/VV1B9Wwnzg+8o=; b=TismdsXZqZEwtCJARRy3LPsRSpXWxIfc9QUKksyYvEbRcGMRRBfI/StchweWBWjf+t BHQB7GXRvZDF63GRiYPIZqZRoAS0T+xh8jZTPkuED4PLBSvpxVuT8qx6hBNGtKD+aUvb ELBF1I/MeZJWdd2YNZ1cyNompZ9OkkdlE1s3q9GqxUiSQg1INxSD9LEwt4pypOVykJhQ tX9bDoTZoIopL1+5b2SsofDv5z7y1SFQ9yjqjELH/D5bVq0quvaQ89nhP56wgE6RlMhY 7D8wpZJCRcFuTK9S17/L2erVdAP9Xwyu+h9JdQGMem/0WxzBwQCR/5Z9FuK9hRWXKMMF N3YQ== X-Gm-Message-State: APuU4Z/6bSbUHltAsS0mCC4w+TkqSVO/SkFAsttSpYJreEsqoA4IUWMI feVIfN3fM1s3ls66GAxFFMACH7AvyGtDeQAyMhVb0rmHAsVdiN+WjI7oFW581iTOA98= X-Gm-Gg: AZFdTZeqSoQ7tQX2Lf1wUb2XnGZ22fZ8tCB0zQg46WZxaDa/LOEswDrAY/FJ2Wj25Jy K/PfYLSq3gynxk5f5zm//UuLnwNFMGSpYYmT3i2I21/T2F2i3QmObP+XwHN4pJIG/kuUzWTxnzF sD1CnfvVcsVXmxwCBzHsQI7G5Kuo6ynwHO0v0I73D1XFE73+Ur4fMTkdPjB7oEK7z6n+NWBvvDZ 2tQ/BH/ME4b/WVgmZ3lWiScjOlVenvltLPVrprcMzVQwIRFLn5+uxT11SXcdE7gBZoLo9nuteGj MyHf3xQWbhvXmV+eH7jT/qIuh7U6bJRz0Lis3Tg1kpKfhiURvME2xBsX9ZgcRCPnYvO5AKE0yKQ Fmbjuiru8+ywnAuuKUl5KYtA6kPt/JXgCEJLeWZjyi5konb6Qyve3V+h86Q0UeF6C6dmYdUTT4s WJD3BG2kpqNUqXJg0vscUnQw/5EQxxXQf4dUWP3F+9kabjRGz+6/NmN//dETv9DrHIcJ8ukJkcn 6H3dwn+JhFjAJVf+Oge0x4WX2rnoOwSh926Z227TEPyAz9+6yz0LdobXCvD8jCoBUVR4LjkKY0S OPZP5cJzgORquFC6UWop8hbXzp8t2n7pdCXN X-Received: by 2002:a17:906:66c1:b0:c50:5ee3:e5d8 with SMTP id a640c23a62f3a-c513aaffcfcmr1388224166b.24.1795719700753; Thu, 26 Nov 2026 11:01:40 -0800 (PST) From: Roman Bogorodskiy To: qemu-devel@nongnu.org Cc: Roman Bogorodskiy , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org (open list:Block layer core) Subject: [PATCH v3 02/10] iotests: fix default QEMU_PROG on FreeBSD amd64 Date: Thu, 26 Nov 2026 20:00:45 +0100 Message-ID: <20261126190054.40844-3-bogorodskiy@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261126190054.40844-1-bogorodskiy@gmail.com> References: <20261126190054.40844-1-bogorodskiy@gmail.com> 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=2a00:1450:4864:20::62b; envelope-from=bogorodskiy@gmail.com; helo=mail-ej1-x62b.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, 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: 1795719773486158500 testenv.py uses 'qemu-system-{arch}' as a default value for QEMU_PROG and it obtains arch from os.uname().machine. As FreeBSD reports it as 'amd64', normalize it to 'x86_64' to use a proper qemu-system binary by default. Signed-off-by: Roman Bogorodskiy Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/qemu-iotests/testenv.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/qemu-iotests/testenv.py b/tests/qemu-iotests/testenv.py index 53c9b5d196..20595e680f 100644 --- a/tests/qemu-iotests/testenv.py +++ b/tests/qemu-iotests/testenv.py @@ -171,6 +171,8 @@ def root(*names: str) -> str: arch =3D os.uname().machine if 'ppc64' in arch: arch =3D 'ppc64' + elif arch =3D=3D 'amd64': + arch =3D 'x86_64' =20 self.qemu_prog =3D os.getenv('QEMU_PROG', root(f'qemu-system-{arch= }')) if not os.path.exists(self.qemu_prog): --=20 2.56.0 From nobody Sun Nov 29 02:09:49 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=1795719877; cv=none; d=zohomail.com; s=zohoarc; b=O4ITQpQVUChDXGPTC75u4BLNQpyFKFQKq2xRrKsKsopUokAo5Ijm35LPsFST2Xfv1KGXj6b2LObL66TyE3Xg/RqvNh9mHQ8SonEd1rvWsPXOFml2cjwNtl9C836u24LPhAbckHEA12sYbQCVXBJbeWhfHYaGCx7Y3y5TYEMNR3Q= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795719877; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=kRmpFWnDdWYCaHUMcaih8suioPghShkTxavFPdaHM0Q=; b=mtzUeLcDKHrerH4sE4Iuq8pQrJ4bgyiyzcMMH0U+V/5jh/fUkNU6BYsLRjtJb9yDivbLr0ruSaUlS/+6xz/r08DzQrP9bLJzM0N/4S7RYDRtPVmdKsEfzyoJIMkHv66RARq232RRYgaOW7rRIDiflgog1fn7ShYPPRwsSvwzpog= 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 1795719877764497.06369202467545; Thu, 26 Nov 2026 11:04:37 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xWejn-00006I-Er; Thu, 26 Nov 2026 14:02:31 -0500 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 1xWej5-000820-R0 for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:54 -0500 Received: from mail-ej1-x62e.google.com ([2a00:1450:4864:20::62e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xWej1-0005CZ-51 for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:46 -0500 Received: by mail-ej1-x62e.google.com with SMTP id a640c23a62f3a-c40e30c26a4so1518001966b.0 for ; Thu, 26 Nov 2026 11:01:42 -0800 (PST) Received: from tulp.my.domain ([2001:1c02:1a15:3000:2727:f7d1:9628:aa81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae6663esm786278766b.21.2026.11.26.11.01.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 11:01:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795719702; x=1796324502; darn=nongnu.org; h=content-transfer-encoding:content-type: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=kRmpFWnDdWYCaHUMcaih8suioPghShkTxavFPdaHM0Q=; b=ah3EYDBACFP3obWf8LPavDbz+Cf0v5yNtcp3umbuQ9g7LZMQ4+ggozaPRVMKUrbSzJ KeBQyQdL0r102MSGBlcdnt75KczykyDey9IUNX9LW5waieUZOcAOg/zmwlk4WX3XYJmy AIJwsYSLISu/zp54ksl1MHwH6apMmkgnM+FYA2/zKKzkYtob+RK/aEWGc52g9Ei1r513 uKg24KKM+trmwAXTnTTjwnZyeVDfDiq6MyM0knMf1Np7ekw+yxmF+7ae22sr0gjvEg2j SieZp26vax1tbw0SxPdJMf2QeqEK//5HLdTVkRIGaFQoaam7YwItIczd3w80u8KJxzu2 NbDw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795719702; x=1796324502; h=content-transfer-encoding:content-type: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=kRmpFWnDdWYCaHUMcaih8suioPghShkTxavFPdaHM0Q=; b=ShOq1CvVypBXePtEgYF6/ZzPodSOzcu6nZes/26RbJTvJxkDarkNYS65uHb4wPmxY4 439ytvFU2ZP1GYF3sX24cbq/ycARlw1tteCycr3dh8Gfouux5hGKd0Eo5TyooMVermpt Ce8BJ9/1l9yLttHVWdTT9iWvDJiF44KqGTD47RSqaJCL8TrAnAu2plcYpuQa7hbsXNGf XX7SxS+eDM4jPFGkthkvoWQu1/aWEpbbBRXTBhPf2qcoG1wNZ3dw0mKO3qYRu3JHNkRf jf5AOa8JcQyB+woeeS3Mo3taNQbJ7BEsnI/gGH37sZIt0eU77bnW30XgupwvWq4HQoZk 75sA== X-Gm-Message-State: APuU4Z++d03N9Aluz7MF1Pvm1yzlKg6/Wn2j3up/hEM7HOshs0Vdplbz FqkWvcJ4worGtZoA0A7SUI4o5ieP29TED89Iebr0JmPcQbCFR2EraMAosGcQ6O0TARA= X-Gm-Gg: AZFdTZfoVVIhBgdA6XBYbZz/VeltK6HXF3iumy4TxKvF8psJX+cL5E4W2lM43xDPDmG fEnSBu7hzdkMxdVzahloqmTpckftfKf8VlNvzkkcTY0Shc1kyK0RPtQWu9tD3jvzPUEzI2NiLFc nGvy9xlEWfyE0ITZt5DQ7KDyPHARZCTKywNDridwF6UYhr1RGKg1UfaFW7xwLqG45SRXmkWU4VU AM7U7/3CdThq0pfdhpqWlKz2/bOvDiB8vT1HqLt6ZlIQhx5XQzeJGT9kO5Pgct53tRF/JO4eCme vUKwh1JmjbuyUBZn5myitaOxN792QnlDQzncsj0RM0Fu0MTYZjAfdK/BzQDj4WD288cSkyGqJ3J aNXwdSlgOnzjQCMYEEAyxkRnRjDikYgD0+DENyNm5JaWqWOmFA9dFt4gCr5hSKlACChCM9GHhrN 1BJjkrFJJfOUN3SL8skP/SVC9eoOpWg/Vu3qlL8y8rEfWhmO+6+vXQ9pTn0ZgVdf9PyPryE1J4L HvQdxNUp/kmXpQ+Ju6waVFnatfOqYLdBZai97sXwqj1y6G2PDiVpPTmPRQTP6kt+c9wHLbPAcVf 5DT0ELC9CKl3IMAXYCD67tJ7g9Ass6ipfKst X-Received: by 2002:a17:906:d1da:b0:c4c:a409:5aa3 with SMTP id a640c23a62f3a-c513a88fad1mr1243322566b.17.1795719701463; Thu, 26 Nov 2026 11:01:41 -0800 (PST) From: Roman Bogorodskiy To: qemu-devel@nongnu.org Cc: Roman Bogorodskiy , Brad Smith , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org (open list:Block layer core) Subject: [PATCH v3 03/10] iotests: fix the dd() wrapper Date: Thu, 26 Nov 2026 20:00:46 +0100 Message-ID: <20261126190054.40844-4-bogorodskiy@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261126190054.40844-1-bogorodskiy@gmail.com> References: <20261126190054.40844-1-bogorodskiy@gmail.com> 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=2a00:1450:4864:20::62e; envelope-from=bogorodskiy@gmail.com; helo=mail-ej1-x62e.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, 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: 1795719878134158500 The dd() wrapper uses status=3Dnoxfer on Linux. It's also required on other systems such as FreeBSD. Rather than adding OS specific conditions, check whether dd supports status=3Dnoxfer and append it to the command if it does. Suggested-by: Brad Smith Signed-off-by: Roman Bogorodskiy Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/qemu-iotests/common.rc | 21 ++++++++------------- 1 file changed, 8 insertions(+), 13 deletions(-) diff --git a/tests/qemu-iotests/common.rc b/tests/qemu-iotests/common.rc index 262fe63da8..a89aa48fb1 100644 --- a/tests/qemu-iotests/common.rc +++ b/tests/qemu-iotests/common.rc @@ -52,21 +52,16 @@ if ! command -v gsed >/dev/null 2>&1; then fi fi =20 +if command dd if=3D/dev/null of=3D/dev/null status=3Dnoxfer >/dev/null 2>&1 +then + DD_NOXFER=3D"status=3Dnoxfer" +else + DD_NOXFER=3D"" +fi + dd() { - if [ "$HOSTOS" =3D=3D "Linux" ] - then - command dd --help | grep noxfer > /dev/null 2>&1 - - if [ "$?" -eq 0 ] - then - command dd status=3Dnoxfer $@ - else - command dd $@ - fi - else - command dd $@ - fi + command dd $DD_NOXFER "$@" } =20 # poke_file 'test.img' 512 '\xff\xfe' --=20 2.56.0 From nobody Sun Nov 29 02:09:49 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=1795719882; cv=none; d=zohomail.com; s=zohoarc; b=ClHnTDqHcOjuMZuqEHpp4OshhAYGRSNdHuCyrYyXj3473MhRXE3O2D1ZkrG01HABrxYfU4rRJtOHpMT4eej2zSZJjK4i50peB84lYJxlzcPSMLi0m7zalGJkfsl4+zww6/0aMukFSyL+/DFQ9EHPg3r6i0Z6eaVrj7vVWVK9O1g= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795719882; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=XzcRwDgDMzutl88PLR4QbPYiMmbVjjYhNIcuolmL//o=; b=fwNEFNp9RGcTeJeZantf/Rbtp03dXThfnYZ3YnYTt7x/moEGKjxcFnDQBNTtMxP6bXbxf0zmxaxoAmY6087KXKXJ1ZSopwHqCtUHhg97IAWCKJPsNAWunTer4EPRIQhVCg6RJmsUe0lL/7ufDYIhE2h6jYDGYcZPW/mtMFIvGb0= 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 1795719882343572.5036833179166; Thu, 26 Nov 2026 11:04:42 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xWejh-0008L6-Vd; Thu, 26 Nov 2026 14:02:26 -0500 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 1xWej5-00081y-Po for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:54 -0500 Received: from mail-ed1-x52c.google.com ([2a00:1450:4864:20::52c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xWej1-0005Cs-UR for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:46 -0500 Received: by mail-ed1-x52c.google.com with SMTP id 4fb4d7f45d1cf-6a642495d81so11434564a12.2 for ; Thu, 26 Nov 2026 11:01:43 -0800 (PST) Received: from tulp.my.domain ([2001:1c02:1a15:3000:2727:f7d1:9628:aa81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae6663esm786278766b.21.2026.11.26.11.01.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 11:01:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795719702; x=1796324502; darn=nongnu.org; h=content-transfer-encoding:content-type: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=XzcRwDgDMzutl88PLR4QbPYiMmbVjjYhNIcuolmL//o=; b=df2RZqnub/b0aHqTgNuPG8OznciiySz9E9a837oP2X6YNtlCauk/KU/X8yN0QVJTWw JsAUgOTE5AJM5kUGvxr1V+ojVHSQRyIPkeR4a0700eu2pTuC/0D4gsdXWXxcBodoQM79 Q6Yzi1LxNeMqUHw+yf+I5xmsYdE2dUblbs1cxbhVZOVkX2AIZtI0BRBob6I4IMVBXLJM Wr4mMXYc6T+CKR1rC59GyjSkjujm/RY+4JUj9bQZNZFrzoZhVlGOkEu3ela/qZmAUAvx nwUqh6pav96cZ0DDfLa9xxECQWABnGBf2G7a1gtX60hEPsXGdmo8EH5yDfhrjSE5TFYH W7wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795719702; x=1796324502; h=content-transfer-encoding:content-type: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=XzcRwDgDMzutl88PLR4QbPYiMmbVjjYhNIcuolmL//o=; b=TkoEwErYHwd+91GP/vBeBCxJ+D774g7HdYaNvtrbCboqDunTQeviWHb4y6zPPr6kY6 zbMl8SLbFkLwIWhYB304xQxl91N5Ud6Cqzxb352IYGk1S5anF5Ejt6yBxSCCWYwbXT30 +i5QNsZyiRMihDDATnFwuFIGQXKcAI19ElYJDoTPPf+oOQbihT9/0nbve51FckumtZtZ hkhXooep1Jdl5w8hnyDn2tEjG+aPMQNy9Vgwk515Z+czi/3PXRqqjSRTQ418AVb5264h 0+Z4Jlvc3JV/TI+gIeH2ofYUdrPs6+E2NFCkNsx77ls18oHwLBjnd65xtvVL6XE9Ytmj mu3Q== X-Gm-Message-State: APuU4Z+x84tuOq0Mnmu42++fVThITgSgkjPeKWdGxNfmGy9Az5DDKIZs 3W276GGiSsdSxdPgOaBhlCQuL0mhVUMyiPiSrOL95gsQKC7Zxfxg0/R7RKVzAwJtLwo= X-Gm-Gg: AZFdTZf/oKQFZY7B6Kz1joWLuoWa15m0NE5fmJywp1UyQKWibK3T2/SJQBD41zRQriZ 7iRv4wBPBU8X+nC4zDdODMBSLEfcPNM8mQaxV9IAfuNPNJ61RqpQZ2EkFaMjI/FzD0m8GtftOrg zBv83XPd9M6nM+YNWFDe59OeQYs4tdXsisrFuXOiJZqnX55zdw/jTmz3GhKic/BQd26kJ5cHXfJ D7Ce3wK8mP3/4PPGDBIJ5bddUgG9KJpG7U1Pj/BfjWVbzNnvjOluipFG2SI0me8zv0ZPqvlsXBh 0Kol4pPOU8kIMmb4w/ZUJwR4Kc2JfqNER/rqZOjEkuyFxNBq7GSElfh3xXEL3FZJvX1sibC3nhd j9dYVEiqk6VXCF8IRiMjGGIphXMBCN0YCjOXxqa5RasCK2vqSAM9VwUqKXslIVENVvbiTbu12e8 2VEDLdAw+9RSJXRDYgfMkqREIoLUQ2zc8PrOQvOS0mzzV/qjExqC2QPiOMlDy6HnZRipTakDPXA JYlCD59jr6fXiv7/bg52hVSd0yUsFNjtvKY2ZQd1SjwrnxM/nFJwEjOK5b6rgXOGPmEVlb9Pb0V lkqRBG1pVf72H2/LJGeFEGggXqYxJPlNvEjL X-Received: by 2002:a17:907:a890:b0:c4c:b4fe:ca01 with SMTP id a640c23a62f3a-c513aad51b7mr1956376066b.37.1795719702247; Thu, 26 Nov 2026 11:01:42 -0800 (PST) From: Roman Bogorodskiy To: qemu-devel@nongnu.org Cc: Roman Bogorodskiy , Brad Smith , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Fabiano Rosas , Laurent Vivier , Paolo Bonzini Subject: [PATCH v3 04/10] tests/qtest: unset socket timeout Date: Thu, 26 Nov 2026 20:00:47 +0100 Message-ID: <20261126190054.40844-5-bogorodskiy@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261126190054.40844-1-bogorodskiy@gmail.com> References: <20261126190054.40844-1-bogorodskiy@gmail.com> 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=2a00:1450:4864:20::52c; envelope-from=bogorodskiy@gmail.com; helo=mail-ed1-x52c.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, 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: 1795719884228158500 The qtest_socket_accept() sets a timeout on a listening socket. FreeBSD also inherits this timeout for the accepted socket, which breaks some tests. Explicitly set timeout on the accepted socket to 0. Signed-off-by: Roman Bogorodskiy Reviewed-by: Brad Smith Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/qtest/libqtest.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/qtest/libqtest.c b/tests/qtest/libqtest.c index 7f66c1bbb3..7bab712e62 100644 --- a/tests/qtest/libqtest.c +++ b/tests/qtest/libqtest.c @@ -151,6 +151,19 @@ static int qtest_socket_accept(QTestState *s, int sock) } if (ret =3D=3D -1) { fprintf(stderr, "%s failed: %s\n", __func__, strerror(errno)); + } else { + /* + * Accepted sockets might inherit listener's timeout on + * BSD systems, so set it to 0 explicitly + */ + memset(&timeout, 0, sizeof(timeout)); + if (setsockopt(ret, SOL_SOCKET, SO_RCVTIMEO, + (void *)&timeout, sizeof(timeout)) < 0) { + fprintf(stderr, "%s failed to set SO_RCVTIMEO: %s\n", + __func__, strerror(errno)); + close(ret); + return -1; + } } =20 return ret; --=20 2.56.0 From nobody Sun Nov 29 02:09:49 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=1795719775; cv=none; d=zohomail.com; s=zohoarc; b=LmQn+25faZVr4KFza3D55aKlw5hzZBotahByz1bviiYTaoNscOGNUqKVKgeRHyI36YdAWjXcY10gYRqD7XwKozCxd299u3RGzFy1M9/rphgoh4s2lf407IraX897VJcGOFO8+PvHh47PEmxoND0Dj568GKKMasHEoFimNrH7jhA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795719775; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=4bwALAOugqP+6U/jBDmD5iA4eEaAn9l9Xu/KF4OZNqE=; b=Cpw4DrIhxUNC7jSd8EjsHaGQO+hD+QEIKNH7ptVpnVVxgTb4ap0B6A9YM3MsOXHC9VS5AUmB3Dn4Phl8Ab3iONq+SLVw551L06JeHDYNolokw4nK2+w8COTb0LyptLI4Hw2er0ZhLaP+UD4WEtZan5VW2dYpMH9PAQVWvOUPGFk= 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 17957197757931014.1069297177668; Thu, 26 Nov 2026 11:02:55 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xWejm-00005G-UQ; Thu, 26 Nov 2026 14:02:31 -0500 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 1xWej9-000831-G3 for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:55 -0500 Received: from mail-ej1-x633.google.com ([2a00:1450:4864:20::633]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xWej2-0005DB-RB for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:48 -0500 Received: by mail-ej1-x633.google.com with SMTP id a640c23a62f3a-c4322d310e7so250499266b.0 for ; Thu, 26 Nov 2026 11:01:44 -0800 (PST) Received: from tulp.my.domain ([2001:1c02:1a15:3000:2727:f7d1:9628:aa81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae6663esm786278766b.21.2026.11.26.11.01.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 11:01:42 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795719703; x=1796324503; darn=nongnu.org; h=content-transfer-encoding:content-type: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=4bwALAOugqP+6U/jBDmD5iA4eEaAn9l9Xu/KF4OZNqE=; b=qevHfF9BPJ824Hux025OccEtWvLNX6gyA8sVNgrOeg5hSt6UK5WlqmuSnh7fL9CS79 QQVOwKHaRZfhI10fYTezp/JYgBvMmCzrqSPOTANdLKw4fGkhIeaygqDaZI/iwD/PFT2N jXwf1PUM02QCBS54LVIEk43vBuIZsVH+zLkSKhvlcM0jSn5/Y6PGmjpR2zc/J7mPJ7Ae 6uRmkz8CkSHQ2PXprta89Fg1StxLRmiRTzKEspdUbxZdIRLVLu/mWOmq25LjOiJxJkWg cYrqQYUe9I4lSR/XmIJVzIHAE/jzBKAfbBByaXf6JSv/tBAzm4D2VPpYGLVjiJ9Cd2km WUmg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795719703; x=1796324503; h=content-transfer-encoding:content-type: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=4bwALAOugqP+6U/jBDmD5iA4eEaAn9l9Xu/KF4OZNqE=; b=VLfoh03dJuuh8rszWnqzfGHqAzrkXIaqVfqQYtYfFBofe/LEMqaOr6zkT9q78IsiMi 0zVERYEk+zlwuE2oRNy0YmjW7U1tZlrhBFesJvCXVQMUl40O3IBocdnigaIE6PFfB8V1 pgUjty9Zg8cRmDJsggNZ3OdYIyV6nr4troLL85U9smdiEipCSe75TOky0EiL712CJa0j tNEwzbGtDdxQxiqR8CN71tbp/vD1+LRKrleReysp5I0NuTs6wxGLFHwkr+xSozIlSntn uNLK8JYPwAoiXANbqLm35Q3LWiTvqQ/z19UAWQ8WRW6REBywzksaK5i7LDdOGXzFq0gY Co/Q== X-Gm-Message-State: APuU4Z/pFhQ0P4D5nDzA2dWEouZUh5k0fNwao7FP0CRYqOeKyQ/ysdov QYk9MSyW8TXbf57gL5jzYPfqpO/+MY0c0dt3/ZTqkxT9eMHVSu7RnZXLI/ZngivDtwY= X-Gm-Gg: AZFdTZdQCFRAetrinesoqXFWHfYpuBvsph8TdiZ6VlmXOJjxLeDIFevnXufFWRpZBif 0AjhjZq8oKHSxAnWCHug92IfLY39ElyeC25DraFA82/lEmAXjJW/oqx1ZjkHV7L8xVvVg6VJs83 DIVqHCv+8+uLKh25bChnH+r4xYR3WqXQMtFlTFytSt8YYB5waGOERNhQ5/NNmcrH7c2BaKlOG0R LyFK1FnCRmH1klZgVXcuGQNBo+lNsFlnXNUJ+roCdtMhK/5IcdPka4X1iFdpdCGI1j7ds6GHtZh omDrgHJ+ySBpCSX1ecSQEDidUewbI3Op8Az+IO6YToPFbgXToDYuUrpqd/m3sb1wgsv504KyxXS rJrdG8u6e/mfIGSJfOct+ZHnPv+HNlDmE7pG56aXuyCaXCuf0Sptq4vMafHX3e9SNAIokBLz3Aa r3VZsDjm/wKq2ziTh1CQmVF2skQa5rtA2ewrXGtEyS4vBtzT40j3zjQG5uJQdDI40Dh+DQO0NhR T0Mq9uCZsnx+J1EbA3RQfNb6wunQy67J2w20Qr2i2WVsMwmiV9V+QedvwOS6CPC6Bzd9Ioi/0LD Vuuwqokjm6TMDVbMqudO9q1BjwJiT+EC5Cbp X-Received: by 2002:a17:906:c10f:b0:c51:b21d:72f4 with SMTP id a640c23a62f3a-c51b21d76b4mr525042366b.36.1795719702900; Thu, 26 Nov 2026 11:01:42 -0800 (PST) From: Roman Bogorodskiy To: qemu-devel@nongnu.org Cc: Roman Bogorodskiy , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org (open list:Block layer core) Subject: [PATCH v3 05/10] iotests: skip preallocation tests if not supported Date: Thu, 26 Nov 2026 20:00:48 +0100 Message-ID: <20261126190054.40844-6-bogorodskiy@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261126190054.40844-1-bogorodskiy@gmail.com> References: <20261126190054.40844-1-bogorodskiy@gmail.com> 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=2a00:1450:4864:20::633; envelope-from=bogorodskiy@gmail.com; helo=mail-ej1-x633.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, 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: 1795719777567158500 Skip preallocation tests requiring efficient zero writes if not supported. Support is detected by probing "qemu-io write -z -n". Signed-off-by: Roman Bogorodskiy Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/qemu-iotests/298 | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/qemu-iotests/298 b/tests/qemu-iotests/298 index f2b94077f4..869bdb3242 100755 --- a/tests/qemu-iotests/298 +++ b/tests/qemu-iotests/298 @@ -18,6 +18,7 @@ # along with this program. If not, see . # =20 +import errno import os import iotests =20 @@ -32,6 +33,15 @@ drive_opts =3D f'node-name=3Ddisk,driver=3D{iotests.imgf= mt},' \ =20 class TestPreallocateBase(iotests.QMPTestCase): def setUp(self): + with iotests.FilePath('zero-probe.raw') as probe_path: + iotests.qemu_img_create('-f', 'raw', probe_path, '1M') + ret =3D iotests.qemu_io('-f', 'raw', '-c', 'write -z -n -q 0 1= M', + probe_path, check=3DFalse) + if ret.returncode !=3D 0: + if os.strerror(errno.ENOTSUP) in ret.stdout: + self.case_skip("File backend does not support " + "efficient zero writes") + self.assertEqual(ret.returncode, 0, ret.stdout) iotests.qemu_img_create('-f', iotests.imgfmt, disk, str(10 * MiB)) =20 def tearDown(self): --=20 2.56.0 From nobody Sun Nov 29 02:09:49 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=1795719796; cv=none; d=zohomail.com; s=zohoarc; b=j/2sJ0hxK6EfsmWOA2l1/RDn5nlpJgeC9cFPsgZNPAicrDUeI6gOl/N0CarwwrEdeEzRhk+QsFdHLmwxnKXRvkJcDyR1mnryS0+bkkYZbEmYavzgCJ06HVeknVZHl4uP5FV25jVSub+mhVpe8TiV6dQflMHIWrzfCI/B8O+sGqk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795719796; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=/2eG+ft6HISlNKo2P344ky+Xu4IplgTfjqoGwGVa/yI=; b=D6fWmqOFTzh3kH0qE1wJsI0M0cjY9IS9m+n1QdDaMXg5wwdVJA29FsQYHUmvOarQ16uYqs2fN4BCMMhI5rTrcX6g2UwwptFDukzlXJHV48p9UrQDKPEcSldUrRgccc3oHVSvoSuTAKlWEReAvUDrxQWJtWLAtOVCx5mlWOH6lm4= 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 1795719796146220.92748811619208; Thu, 26 Nov 2026 11:03:16 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xWejk-0008RI-8F; Thu, 26 Nov 2026 14:02:28 -0500 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 1xWejB-000838-Fu for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:55 -0500 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xWej5-0005DG-Hu for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:52 -0500 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-c5127c7abd5so1129404266b.3 for ; Thu, 26 Nov 2026 11:01:45 -0800 (PST) Received: from tulp.my.domain ([2001:1c02:1a15:3000:2727:f7d1:9628:aa81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae6663esm786278766b.21.2026.11.26.11.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 11:01:43 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795719704; x=1796324504; darn=nongnu.org; h=content-transfer-encoding:content-type: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=/2eG+ft6HISlNKo2P344ky+Xu4IplgTfjqoGwGVa/yI=; b=D7y4mV2VsPnZ/649pf7uYT/PAmf/yP7MidYns7BYGb4mjJm6fxwGJFPZ4K+zWD/nR7 erYxQ+UmZeSsmugS7crJDT7MqkxTpePPHio1HBmwBclNfIhLunqPetsN7oB0fZ1rh4BP gE/8W/zbajKb3YNY6p+/gF6buwbYFN7HTCdqDm2vErB8VN5UNZ58AjSrxLKb1MfPszO6 YyZrOhi8RWrPyiI8CGOKQfjemAWXnmq6NQGPBowfZtingyqW7X3WUtb251Q58nk5mT24 auWbf5iFcLWZsMK9SnLwiE/WsQmqXxCFQUnmv5EK0f15Kil9KVAXOh05zO9KdyBYA+aS vF4g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795719704; x=1796324504; h=content-transfer-encoding:content-type: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=/2eG+ft6HISlNKo2P344ky+Xu4IplgTfjqoGwGVa/yI=; b=EIIqQLK+HKJ2JHwg0IMYcwtpmm1me4jLiXanxBp3dg51P+r3c0crYxXUDWCtb8xuoZ iE8fgoQaw0m61PAnOX8/CR7u5wSqsSmKzGNycewqAGla8SFSk8sr0Y5WSpgTfvVfh4eT Fmu2b+mDQdk7WsBpww/uutL2fl8/1F5MvwFp8G37EYMuEONiVf4UaBtnM7P10a6zVVis ycLncc0SRSCaFwNDQni3GxgsJ7o1bby3zQDt+Cm649L/ly7muUGruEssCq3rSwWG0Kvo zqUv+HGVmbnUE5S+d+7KM12dZ2GfLP5dGl/w4vBB8pJiGzksmp9ofLgczSbTDwxbb6Lz 2COA== X-Gm-Message-State: APuU4Z/Nlb9C5+t4kXLtusF26Jf/5DL3ayxpiguQS2WceT/VGUOPDK8P 4c02rAqKAFlJpLRyEIPslawHvKEEbY7dxPQiGqis0vz2+cFIGDfKz6SUYftDqQcjvtI= X-Gm-Gg: AZFdTZdTnbf2cnIkc1F7NGeiLlNibnQw3MKvTRGe2xbJRkm0HTP4IjmStJo+tamxca7 3HBe6/G+jW8rA3UYJx5w5qztO+ru7CPKpH2D4OkKZnbxtrCI5KqhLg6dHRafxdSLDfK9s5qobFo HReHG9GNPmYIr+wqyqwY1dRnXTDNUCwTRDVXxByCLM6R6uLHNaHAEjjic9nMqTsQ2+E4OvAXA/D IOQGhMXoj5iAUNnRrfLakQYhPLeqGYPOc40g5Jtfx17VrRD5LbmbhnWUQZhd3dsQftjLYCPZ+L/ F3QlW1kepAgi+YL9DGCEAHxpur7K7Ovbfb8hAdoi2DWwBqbGdFNIX2TfUIT/TuhWHFLU10kAE1X RhHJul9TJKQc4fwtVScUNYD92hznullfYxSrmT3o06ViYYtMTH1Fo/Ydh9TSWYs5hSXjsCrujW6 05EdOPG+o3Z2oadN/g0JG7C4/vEvmWXHcmUP6pBcmGnWIuTA2f8sHwSw3sorUNyp5jvJu2290ed mq4U1JULRiglIj+M1yXFNP5epxqXgfvQqxroRO3Osp0nSeQAEr8IwzoT4CnXZrniE0ANclb7330 YL0xfKAEtbuaOVZtRSatp/C+ScSULE3WQ8Gq X-Received: by 2002:a17:907:9403:b0:c51:bc21:9fe3 with SMTP id a640c23a62f3a-c51bc21a0acmr413078866b.33.1795719703628; Thu, 26 Nov 2026 11:01:43 -0800 (PST) From: Roman Bogorodskiy To: qemu-devel@nongnu.org Cc: Roman Bogorodskiy , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org (open list:Block layer core) Subject: [PATCH v3 06/10] iotests: mark 149 as Linux-only Date: Thu, 26 Nov 2026 20:00:49 +0100 Message-ID: <20261126190054.40844-7-bogorodskiy@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261126190054.40844-1-bogorodskiy@gmail.com> References: <20261126190054.40844-1-bogorodskiy@gmail.com> 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=2a00:1450:4864:20::636; envelope-from=bogorodskiy@gmail.com; helo=mail-ej1-x636.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, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=unavailable 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: 1795719797476158500 Test 149 requires Linux specific dm-crypt and cryptsetup, so mark it supported only on Linux. Signed-off-by: Roman Bogorodskiy Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/qemu-iotests/149 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/149 b/tests/qemu-iotests/149 index 6dff39a28a..7b7afbd539 100755 --- a/tests/qemu-iotests/149 +++ b/tests/qemu-iotests/149 @@ -404,7 +404,8 @@ def test_once(config, qemu_img=3DFalse): =20 =20 # Obviously we only work with the luks image format -iotests.script_initialize(supported_fmts=3D['luks']) +iotests.script_initialize(supported_fmts=3D['luks'], + supported_platforms=3D['linux']) =20 # We need sudo in order to run cryptsetup to create # dm-crypt devices. This is safe to use on any --=20 2.56.0 From nobody Sun Nov 29 02:09:49 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=1795719871; cv=none; d=zohomail.com; s=zohoarc; b=cE0VaWsw3bz6KnSfyk79iUwckAKKJnNLdp9tDrXbCmRJjHCdNoLjGXg7SJb9naGc4nqk65hjHKbBfn/DmFJo0N5qRmgPUrGRjSmD+ld/GosE94MVQt1Jh/UD1LB+lpm+wg6lpeprz3Od/Yi2zev7q8uqoLHqzbX5dQO0y0C9nY8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795719871; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=5OVoyjCkc+WrC7i9e3jXKc8VxoW6GGLBwrCBvvb0OZs=; b=mcX0Abz5OFL290qxpiwPYKYzt6UM1UbLTmWM1wqD+g+jbiWsS2LVaTF4KOUu7I9L890/AP6mbixTm/sN3G0uMJ3pdhmrU7oOqdoApwjQQXjP5H4+6LjSW7IB6mguLrRywN+TKozkpSU8LaQIQ+O/mqXjVYGm6linlXW4FL8umPs= 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 179571987115347.57717593164284; Thu, 26 Nov 2026 11:04:31 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xWejj-0008On-7V; Thu, 26 Nov 2026 14:02:27 -0500 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 1xWejB-000836-Fl for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:55 -0500 Received: from mail-ej1-x62a.google.com ([2a00:1450:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xWej5-0005Da-IC for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:52 -0500 Received: by mail-ej1-x62a.google.com with SMTP id a640c23a62f3a-c51bf011392so208019466b.3 for ; Thu, 26 Nov 2026 11:01:45 -0800 (PST) Received: from tulp.my.domain ([2001:1c02:1a15:3000:2727:f7d1:9628:aa81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae6663esm786278766b.21.2026.11.26.11.01.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 11:01:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795719704; x=1796324504; 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=5OVoyjCkc+WrC7i9e3jXKc8VxoW6GGLBwrCBvvb0OZs=; b=qW5F4hLDDtETWZAmvdkMbwYHuONnFskAlhizW6qM0zpE5Ab30VqzNQp8BCrvuJOrgE BhHpm6Do5E9xz2PllGHer/DQhCb6S1i/bJY4RMvjWGQPqkWs3bPRmsrlQ20cDAFCavqk MZ0vFCJ8o0UV8thU3CDpimXB9dU4I19FnaGD4LqaY0x/SnbzlvyLCI3SjhmCid3PP/Dk hX6n20JECHRmcCHRTcz6dxzo4RqRdpr7bKR71tGKKGynTziWiuMLefDHF81vSLEjqAvA iFdv+PekS7r2bMkn2sXP80ydL4j9h09n50XiW32WGq1R1g4R7Uju/lz/td0B7a33OQ+W /aJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795719704; x=1796324504; 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=5OVoyjCkc+WrC7i9e3jXKc8VxoW6GGLBwrCBvvb0OZs=; b=cpJTsPa+H7IcXb/DElwCPbNWAc3UgOPKHwxwb/wZMM7GnpOd+Fwcr4C8NCCFPUQBTU BDZjzK6Go90araiMR00LCv1HluI+tSRpA7xcWhBJVmCJo6XKSO9zRvfuq7m1BoQWzugm CmTRcmKwK/s0cml0PrTkyPCCr4mWWqwBVg1ad5k4V7A504grVmn37NvMsO3NQ1zBsU1s kRbEn3HqmTd3Qnsp2iVu+pNqzdIGG0wXBUym7fQQSA/4ZjWS0pa1+ZKag8UB9jub+bCq pG+sNW/YuJgMUoAhE6wfmtru2/imtGzvLF96HI2qz8geTxLqu4ejSjMRcyLqv3xjd5fp k/cg== X-Gm-Message-State: APuU4Z+8dCtDEAz7zZ2RCb5u9lavxLnnJEEfLsUxMjX64+nCGO84Yz0S 3XbjdqW7r1wUMsRtsaKxakI/M7JrZoE1B+asRUpIK5WSXJnCk79F2ctrlr4U6e5DTME= X-Gm-Gg: AZFdTZftCso5eQeAFPQ6JDLjuUy/0weQS7Jtk2iwF0pOTBl21lhwswgG8g1Ze09sKrv Z8B3MXMQG9yt3EajvCbQHxQRKloJXVDc/6fjtDD7otsLgB3GfNl81hpohiaMu2+faXFXcRCwCsD Cw8WtpiFS+XIfj0Bj2hA98zYBE1noqvjJnyyaqVPR1eU/xuFJdCXS1IuFZPnxdPLUVbwaKyjblR wbDVnUrsT94Iz7//6rjmuL5xw2WIK2FH1fREHoyl2N+iUsFaJIXD1Sx3JUc/7vmh25ZdF6uzvWZ +/O+wHVdZBBGl2+kMGd5v864dqOEE+9iJXSgolqQnWfoBDRkpKpD0e5LT93hsaKtZQhi6g7oduU 2v28aCMgf4XvCf5alkZo4O7t9Noulxq1s+xacunhLfZYBaSVT04bqSx+qmxmRAbw56H9WyTkZzg OAtFmyEz1UNkpMxDppgfVAHJADpGTpX6dw3wNWV0n3zQhXmNHmZ0JWGxuHow940FQU2mH8HFv6V gOfERMHwGO3OQ5hYwsvNNwNhe65lmP0mzWOPpDo1q78mJBboEbD2QsdijDn/WQq3h0zN9vEPP2A oCAU4uLqr5PZ416JvJ0RE7WwrK+zVPTiIiMv+E0B3NH8n5KfBW0vsx5HzQ== X-Received: by 2002:a17:906:d7a5:b0:c51:249f:7250 with SMTP id a640c23a62f3a-c513ac66e13mr1318412566b.39.1795719704363; Thu, 26 Nov 2026 11:01:44 -0800 (PST) From: Roman Bogorodskiy To: qemu-devel@nongnu.org Cc: Roman Bogorodskiy , Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org (open list:Block layer core) Subject: [PATCH v3 07/10] iotests: fix test 162 Date: Thu, 26 Nov 2026 20:00:50 +0100 Message-ID: <20261126190054.40844-8-bogorodskiy@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261126190054.40844-1-bogorodskiy@gmail.com> References: <20261126190054.40844-1-bogorodskiy@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::62a; envelope-from=bogorodskiy@gmail.com; helo=mail-ej1-x62a.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, 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: 1795719872172158500 Content-Type: text/plain; charset="utf-8" Test 162 expects Linux error messages. These messages could be different on other OSes, on FreeBSD for example. Add a _normalize_errors() helper to cut these OS specific strerror() messages. Signed-off-by: Roman Bogorodskiy --- tests/qemu-iotests/162 | 15 ++++++++++++--- tests/qemu-iotests/162.out | 6 +++--- 2 files changed, 15 insertions(+), 6 deletions(-) diff --git a/tests/qemu-iotests/162 b/tests/qemu-iotests/162 index 4f01611886..a8aa61a837 100755 --- a/tests/qemu-iotests/162 +++ b/tests/qemu-iotests/162 @@ -33,6 +33,13 @@ _cleanup() } trap "_cleanup; exit \$status" 0 1 2 3 15 =20 +_normalize_errors() +{ + # chop off strerror() strings as they are different across OSes + sed -e "s/\(address resolution failed for -1:10809\).*/\1/" \ + -e "s/\(Failed to connect to 'localhost:0'\).*/\1/" +} + # get standard environment, filters and checks . ./common.rc . ./common.filter @@ -45,7 +52,7 @@ echo '=3D=3D=3D NBD =3D=3D=3D' # NBD expects all of its arguments to be strings =20 # So this should not crash -$QEMU_IMG info 'json:{"driver": "nbd", "host": -1}' +$QEMU_IMG info 'json:{"driver": "nbd", "host": -1}' 2>&1 | _normalize_erro= rs =20 # And this should not treat @port as if it had not been specified # (We need to set up a server here, because the error message for "Connect= ion @@ -78,10 +85,12 @@ echo '=3D=3D=3D SSH =3D=3D=3D' # expected to be an integer =20 # So "0" should be converted to an integer here (instead of crashing) -$QEMU_IMG info 'json:{"driver": "ssh", "host": "localhost", "port": "0", "= path": "/foo"}' +$QEMU_IMG info \ + 'json:{"driver": "ssh", "host": "localhost", "port": "0", "path": "/fo= o"}' 2>&1 | \ + _normalize_errors # The same, basically (all values for --image-opts are seen as strings in = qemu) $QEMU_IMG info --image-opts \ - driver=3Dssh,host=3Dlocalhost,port=3D0,path=3D/foo + driver=3Dssh,host=3Dlocalhost,port=3D0,path=3D/foo 2>&1 | _normalize_e= rrors =20 # This, however, should fail because of the wrong type $QEMU_IMG info 'json:{"driver": "ssh", "host": "localhost", "port": 0.42, = "path": "/foo"}' diff --git a/tests/qemu-iotests/162.out b/tests/qemu-iotests/162.out index f8714cb0d2..12e31e6136 100644 --- a/tests/qemu-iotests/162.out +++ b/tests/qemu-iotests/162.out @@ -1,13 +1,13 @@ QA output created by 162 =20 =3D=3D=3D NBD =3D=3D=3D -qemu-img: Could not open 'json:{"driver": "nbd", "host": -1}': address res= olution failed for -1:10809: Name or service not known +qemu-img: Could not open 'json:{"driver": "nbd", "host": -1}': address res= olution failed for -1:10809 image: nbd://localhost:PORT image: nbd+unix://?socket=3D42 =20 =3D=3D=3D SSH =3D=3D=3D -qemu-img: Could not open 'json:{"driver": "ssh", "host": "localhost", "por= t": "0", "path": "/foo"}': Failed to connect to 'localhost:0': Connection r= efused -qemu-img: Could not open 'driver=3Dssh,host=3Dlocalhost,port=3D0,path=3D/f= oo': Failed to connect to 'localhost:0': Connection refused +qemu-img: Could not open 'json:{"driver": "ssh", "host": "localhost", "por= t": "0", "path": "/foo"}': Failed to connect to 'localhost:0' +qemu-img: Could not open 'driver=3Dssh,host=3Dlocalhost,port=3D0,path=3D/f= oo': Failed to connect to 'localhost:0' qemu-img: Could not open 'json:{"driver": "ssh", "host": "localhost", "por= t": 0.42, "path": "/foo"}': Parameter 'port' expects a number qemu-img: Could not open 'driver=3Dssh,host=3Dlocalhost,port=3D0.42,path= =3D/foo': Parameter 'port' expects a number =20 --=20 2.56.0 From nobody Sun Nov 29 02:09:49 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=1795719868; cv=none; d=zohomail.com; s=zohoarc; b=IVO6A9WewhV1fjUQIx4DPG14ogDGdFn7Zpj8VUzKZUQcSPn0fN1UOAAyDrqqDZx3gvJ+cUk9dBW/ngo53PXE9czLcWuldtXuXxSPhY7lZhNnGJEULZ4p8pm1NwjIRm01w8c+sF55vUp8/IN744d8YrDrnN8K84awfyKfcagL9cY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795719868; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=35g4FLKL6yEA8ziN66v1CUgLUxjBA1s6MbjCUNl4ucs=; b=HVpM5g7OuIdBhRCVBYbQu2cNkjHd+A/GgyrTaW2N1UPwT87LAtmL4zLyBY5TFUCjB9eXplwO0ecG+WCyfXXQU4vl0RiHj5IUszalDGImcVJSuQUAGYj8FWqiGwv+DYq+/3WgAnlJ8Z8ORuO0QzDPP4cql91Cpuwh6dNCuwaOhvs= 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 1795719868532931.6430110394369; Thu, 26 Nov 2026 11:04:28 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xWejh-0008K9-Gw; Thu, 26 Nov 2026 14:02:25 -0500 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 1xWejB-000839-GE for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:55 -0500 Received: from mail-ej1-x62d.google.com ([2a00:1450:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xWej5-0005Dq-GH for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:51 -0500 Received: by mail-ej1-x62d.google.com with SMTP id a640c23a62f3a-c51c294cef6so114483466b.3 for ; Thu, 26 Nov 2026 11:01:46 -0800 (PST) Received: from tulp.my.domain ([2001:1c02:1a15:3000:2727:f7d1:9628:aa81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae6663esm786278766b.21.2026.11.26.11.01.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 11:01:44 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795719705; x=1796324505; darn=nongnu.org; h=content-transfer-encoding:content-type: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=35g4FLKL6yEA8ziN66v1CUgLUxjBA1s6MbjCUNl4ucs=; b=tD2ck0Gjb6ZdyXDSWcAFu4zPBxgbPkbDobam5E9xu68W7O7r6JXnCuV8p9YmRNqZXy TSetEEckOo5oiS+r0wG4xG9lRZvIfyPeweHFasmy/T9ifgDQ77LaZVqsMEsal62LOvI/ Q5DP9MUuto7xkSu+tKqmGt2tkrBYzc9FzEoEXk+L/Y1k/3lA9dm4a/nbAWAoc+0gRR0W 0d4h4Yuen8l6e/45N1mFhUSJ4BBmdsdHiXFr3blY22QnK/MCniBuPgXFJuk9Sr1jtVcP Rwm9nt0l0kvJM6oPBcDRoEua7N6FeFot7/+R0eW0y8776vxEm1QTF/DiyT42fNf/PhNr ACVQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795719705; x=1796324505; h=content-transfer-encoding:content-type: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=35g4FLKL6yEA8ziN66v1CUgLUxjBA1s6MbjCUNl4ucs=; b=zCj52YOlJTfvwWLXW+XWbkqDjFnxXww6N5KC5KNRXiXqVZ6eoKvas30x5G/DOnLsfl 5cRUkmvWzepJQRw1a6Mi9MeIwjUaRNa7d8Z/KWgHCgr7QfiZiat1NZBxUf8T92e4Rzoa OHD0b0S8HXr66AlCTaaDDczJr+OumPQFo/FprzJYTdby3ufMaeHUACXxQvjljCtX4Eg8 7TN1xd3HxfQ9Wl8UPK2THj4v8mgE9UUmB69EIkmGvD2YH8WMSAzLyvO1EiO2pw45dwi+ /vrS3F8ahj4ZCEH4GOWz3o1AOk755A4SE9awbVz+V47O9l+T8HivuCs4VBVjZ3ACaG4p hNtg== X-Gm-Message-State: APuU4Z8/LkG1KQAb5MEVB6VFRr0U93khKIRPEJbuvw7uDP2a5m9HMYEl xciRN9rOD4M4CwV/1Pxm51f8345SiSwaaf2Pu+nMg4OrUnJCc93adVuVxgTjhgJnBpE= X-Gm-Gg: AZFdTZdd+EjrbCokWPWWaI9eieZXo+Co59cZrPQFcnfb3cs8tiAis6IJ0WupJJmOrgb Wk0xNMvPfGatthpvD+WZ7WucCJic4hNDuo/rsb6XMv+lsmryW9gTT0lPmAttPWn/trI66+sO03l XfGZowdMnQgWvbBiYLywlQqcNC0Z/RgahQpy/Q20X43aiYuNrqh43RLxUn15Nkbs0LWKWuFJeZ4 N6bXWJATz8PTD8eGc26NBNC4M/I1iSFVIQKNuqV+3fmNdOJpiDYnUVTwtGNFQYby+P3iqOJbaSW 4ivJzZHp4bePdR+5F+qzopwrQo2Po45KUZlS2EGu9eXhqQVOQJErtnMhDt2kFkLbrPhAjgr7IWp VE/qjCHHEMCtkCRQGye/x0kkyBFrf/SDsiZaci3sDlkqx4L2dWpP8V72clnTW4f28mj76TOAAR5 RNzDEDxIRlQnmxjCDPxYEvnt/eJ6bkbWV9C6SgApUVEBLC8vNTez3hUE/BkgMbEFhQ2KqOs8LdD HhnX3vMhQRMpvRfNsvEVEuLzel6pwTwBcAdeclH4cxcB7E6ixpWSM495Bo5g7PQO/u5DLp3TFKZ RO4jWIPGXQzGvXIXs5bt3iyL1MT14zq0R3sM X-Received: by 2002:a17:907:6d03:b0:c35:d50a:1352 with SMTP id a640c23a62f3a-c513aace66bmr1733684166b.11.1795719705022; Thu, 26 Nov 2026 11:01:45 -0800 (PST) From: Roman Bogorodskiy To: qemu-devel@nongnu.org Cc: Roman Bogorodskiy , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org (open list:Block layer core) Subject: [PATCH v3 08/10] iotests: fix possible race in 145 Date: Thu, 26 Nov 2026 20:00:51 +0100 Message-ID: <20261126190054.40844-9-bogorodskiy@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261126190054.40844-1-bogorodskiy@gmail.com> References: <20261126190054.40844-1-bogorodskiy@gmail.com> 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=2a00:1450:4864:20::62d; envelope-from=bogorodskiy@gmail.com; helo=mail-ej1-x62d.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, 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: 1795719870172158500 Test 145 uses "-incoming 'exec:true'" argument for QEMU. It is possible that it reads the migration input before processing "quit", so it'll report an error and the test will fail. Fix by using a migration socket, similarly to how test 181 already does that. Signed-off-by: Roman Bogorodskiy Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/qemu-iotests/145 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/qemu-iotests/145 b/tests/qemu-iotests/145 index bbc3c34c19..3711250c7d 100755 --- a/tests/qemu-iotests/145 +++ b/tests/qemu-iotests/145 @@ -25,8 +25,11 @@ echo "QA output created by $seq" =20 status=3D1 # failure is the default! =20 +MIG_SOCKET=3D"${SOCK_DIR}/migrate" + _cleanup() { + rm -f "${MIG_SOCKET}" _cleanup_test_img true } @@ -56,7 +59,7 @@ else fi =20 echo quit | $QEMU -nographic $SYSEMU_EXTRA_ARGS -drive $SYSEMU_DRIVE_ARG \ - -incoming 'exec:true' -snapshot -serial none -monitor st= dio \ + -incoming "unix:${MIG_SOCKET}" -snapshot -serial none -m= onitor stdio \ | _filter_qemu | _filter_hmp =20 # success, all done --=20 2.56.0 From nobody Sun Nov 29 02:09:49 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=1795719838; cv=none; d=zohomail.com; s=zohoarc; b=EMdVnKJ0vhaTR19k9X8bGjm0HAYp8AXnZD0BD0hls3otvh+iEaV3YtH9m+8d+X9MYlCQnbXThGpPuMzCczzmrri11bptQkQtiderIFi/ZUPxydPeIEVMo8a6ddajC33he4xAPGxEy5kVO7Uxhz1lNS+INaqLz4HZ16qvuhbFGN4= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795719838; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=K7vP6aq5S1QHw3j0QGlVlTkM+O+AFJvge5FV5v2pL/8=; b=JTd4eb8tB6nh1BMM/LA8Pgc2yDJ7H8Sw8RioLS1V8FM9+Aers2TjFxoF4373JmZH/fwnE+LE5LycB0Hxpiwuenu613bVljSutrT0ki1Ej/FcfH+vUfZBPFzNadPsX9fFHWNW7HlplxMAn16Y5Fr8GakIoxzFyRE96muxPSFouaQ= 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 1795719838007160.52469677930435; Thu, 26 Nov 2026 11:03:58 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xWejm-0008VN-1k; Thu, 26 Nov 2026 14:02:30 -0500 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 1xWejB-00083A-HM for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:55 -0500 Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xWej5-0005E7-IR for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:52 -0500 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-c51d158acc6so52259866b.0 for ; Thu, 26 Nov 2026 11:01:47 -0800 (PST) Received: from tulp.my.domain ([2001:1c02:1a15:3000:2727:f7d1:9628:aa81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae6663esm786278766b.21.2026.11.26.11.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 11:01:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795719706; x=1796324506; darn=nongnu.org; h=content-transfer-encoding:content-type: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=K7vP6aq5S1QHw3j0QGlVlTkM+O+AFJvge5FV5v2pL/8=; b=qhLfg73ip7mv22QNH8bjcxCPK4Qn5eVWWKEe5kXBxAZErznfJCqEDPwa++d4vREFdi oC8hPV3Hdl7GuqRQSFPKxaxTLQXZDbyJy57c8EYZxzrl3EfxNzyRV/Jw9bh1TNxiDcHm 4fqUVy5A11Uq34XDl9iUZl7jFNeqM0CdF50LFHf3lm2TpacH2iJWRE8l/D8Mw/MhSxap vstLe+JTAWmaPv0RcZeVuLSsbGlOLUNgHu/HaGa0Deg80Kzyju9Ppf7a38u6KdDu82Gr d80qogLHCWaVRabzY8afcwqWtxtoFEfMMcGr8JawnVTNdITjcFHRpDukRWlaGBUXTd8T 6GwQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795719706; x=1796324506; h=content-transfer-encoding:content-type: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=K7vP6aq5S1QHw3j0QGlVlTkM+O+AFJvge5FV5v2pL/8=; b=LnNINf6eVqr9iBxvEmeolHxVXengodt0SDciZ3pJRreHh3wrC6OYCzG78Eg8NmdA6Z TtDoMRzYT+KdzfCoZxax+6FHBeIOWBCSifwbyyfJ9FUz9cVI3u5xdcx3dwor+cazsWJr bljg2Thw/5vrhojPoIPQKQtW6TnocZiT17LZCeB1H6yssQCMLwtlhtkanaubVwPfJZqY kc8vcfG7aAQG+i1inXQNQaj026DXq9UEMt3YCkxJrEZv3oh1TZDG1qv4s85my+OCWN4p 7bBbO0FIFTdPx91rSuuulep8WpzG0qu/VUS0vn5WP5Mj3HceEk1gnMRF4Cygb6pDm3+1 cfsQ== X-Gm-Message-State: APuU4Z9Ku28fvS+jbeN5W50ZpcaVJTU+J+s6vWvzMCP7W1biyI+DLMW4 Mc+0PIRByPTE0oXWe2i10mEaq8DigfIbzjGpQRuoAvBliy3p1NlTm9ngfCU9kZRR5ec= X-Gm-Gg: AZFdTZcMsYNJPGxQCgENpGirfhuekH8678QHy9gruYb+f9XowPxZIThfv7/Esdrsqzo 6xkHeV8/Pz66Qd6M8ELARLy6Ogk399mKkTaVj/M5nz0bI2uJdCCbr+KHKWt32klPgR6UdqRwIKf laTDsZO+KFGjg2GD447po5nnPQ8z3v45LA82C9oFaT28qcx/KwiaMVibLqAxzW+oVNT6Rn5U5r+ Kp9pHe4iGl/gMD47xk4a6qtIcGuwEvGvnBSfaavovVyidELotjIvB/2LMh1FZc+eatDqV3uFiSs fcnjruydbTmgUR6YQSSjI5oN641wFao3bwtLM920aeb2/UcpvQvLWMd/xfF3AmGgFvxIZI4YEsC Fjximjltjm0MhyhjIgefaJ+L+oBXl+FYXUJnwBF5KJymQyC0YTUB/mJNNYzUx8LxWjJPSdSgr72 pf/krE0P5vUDuiW2NRiRgaqwP7Ed9X91F6c7qbp0K896flaK4Tx5g/b9Mbjm8Cr18LbGW6bHNd2 AlJpyXPGMBpY2dh4Wbq3ZO9G4ngXLiL/NNEyFlwEoPU2wjXAeZ/T7AYaL282Ori8ZY4wORQi4Ee J/NkgkM942BLT5L4WFEwnV0Lj4FEdckcaq+2 X-Received: by 2002:a17:906:115a:b0:c3e:ee86:d2c with SMTP id a640c23a62f3a-c513a866684mr1583673066b.27.1795719705802; Thu, 26 Nov 2026 11:01:45 -0800 (PST) From: Roman Bogorodskiy To: qemu-devel@nongnu.org Cc: Roman Bogorodskiy , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org (open list:Block layer core) Subject: [PATCH v3 09/10] iotests: properly skip tests that require OFD locking support Date: Thu, 26 Nov 2026 20:00:52 +0100 Message-ID: <20261126190054.40844-10-bogorodskiy@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261126190054.40844-1-bogorodskiy@gmail.com> References: <20261126190054.40844-1-bogorodskiy@gmail.com> 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=2a00:1450:4864:20::631; envelope-from=bogorodskiy@gmail.com; helo=mail-ej1-x631.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, 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: 1795719840133158500 Tests 296, qemu-iotests/tests/migration-permissions, and tests/mirror-top-perms require OFD locking support and fail when it's not available. Add the supports_ofd_lock() and verify_ofd_lock() helpers and use them to skip these tests when necessary. Signed-off-by: Roman Bogorodskiy Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/qemu-iotests/296 | 1 + tests/qemu-iotests/iotests.py | 16 ++++++++++++++++ tests/qemu-iotests/tests/migration-permissions | 3 +++ tests/qemu-iotests/tests/mirror-top-perms | 3 +++ 4 files changed, 23 insertions(+) diff --git a/tests/qemu-iotests/296 b/tests/qemu-iotests/296 index 2b63cefff0..84fb8d0d9b 100755 --- a/tests/qemu-iotests/296 +++ b/tests/qemu-iotests/296 @@ -273,6 +273,7 @@ class EncryptionSetupTestCase(iotests.QMPTestCase): =20 =20 if __name__ =3D=3D '__main__': + iotests.verify_ofd_lock() # support only raw luks since luks encrypted qcow2 is a proper # format driver which doesn't allow any sharing iotests.activate_logging() diff --git a/tests/qemu-iotests/iotests.py b/tests/qemu-iotests/iotests.py index 7017d2016c..90f25272d4 100644 --- a/tests/qemu-iotests/iotests.py +++ b/tests/qemu-iotests/iotests.py @@ -1588,6 +1588,22 @@ def verify_qcow2_zstd_compression(): if not supports_qcow2_zstd_compression(): notrun('zstd compression not supported') =20 +def supports_ofd_lock() -> bool: + with FilePath('ofdlock.raw') as img_file: + qemu_img_create('-f', 'raw', img_file, '1M') + res =3D qemu_img('info', '--image-opts', + f'driver=3Dfile,locking=3Don,filename=3D{img_file}', + check=3DFalse) + res.check_returncode() + if "falling back to POSIX file" in res.stdout: + return False + else: + return True + +def verify_ofd_lock(): + if not supports_ofd_lock(): + notrun('OFD locking is unavailable') + def qemu_pipe(*args: str) -> str: """ Run qemu with an option to print something and exit (e.g. a help optio= n). diff --git a/tests/qemu-iotests/tests/migration-permissions b/tests/qemu-io= tests/tests/migration-permissions index 0deaad2d3a..7f943113e9 100755 --- a/tests/qemu-iotests/tests/migration-permissions +++ b/tests/qemu-iotests/tests/migration-permissions @@ -30,6 +30,9 @@ mig_sock =3D os.path.join(iotests.sock_dir, 'mig.sock') =20 class TestMigrationPermissions(iotests.QMPTestCase): def setUp(self): + if not iotests.supports_ofd_lock(): + self.case_skip("OFD locking is unavailable") + qemu_img_create('-f', imgfmt, test_img, '1M') =20 # Set up two VMs (source and destination) accessing the same raw diff --git a/tests/qemu-iotests/tests/mirror-top-perms b/tests/qemu-iotests= /tests/mirror-top-perms index fab9907e92..653f2e4a6d 100755 --- a/tests/qemu-iotests/tests/mirror-top-perms +++ b/tests/qemu-iotests/tests/mirror-top-perms @@ -33,6 +33,9 @@ source =3D os.path.join(iotests.test_dir, 'source.img') =20 class TestMirrorTopPerms(iotests.QMPTestCase): def setUp(self): + if not iotests.supports_ofd_lock(): + self.case_skip("OFD locking is unavailable") + qemu_img('create', '-f', iotests.imgfmt, source, str(image_size)) self.vm =3D iotests.VM() self.vm.add_drive(source) --=20 2.56.0 From nobody Sun Nov 29 02:09:49 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=1795719843; cv=none; d=zohomail.com; s=zohoarc; b=e+janSOTHnVRRqNBroNqH44o9DoigRHacaWxjgevakBiqJv6VNYeLpRxFwzHIunOEkXOAtTvLbhDDZosXkasmamYSOxxrcbF99l8IPe/5gDtFeoOx3vxzlAUdtr6ixO/oG0hPMIa+ZkHj8kMcsBJ5zz7HPkYli79LPckklpZwhA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1795719843; 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:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=38dWrsSr7dq7CGW7X5t+PZK65OCbdGdS+3mjFfeGmUY=; b=Qhxt+hoJjCY35OmuXTFjSP4KOFdTd/fWnmsgQCf0LR6tMSa4PcZf1KpMPIHfDqEwunZ9f7RzQRJFWlr0+650yFxtiKoJAhL+GgHlZyx/5gRDKy4opU2IMWUvdImfzPnVRVpuQMtQ6W8EyEtoTL+Kr2vEiWE6gFOumacY4wNY0Vc= 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 179571984377888.70882298069694; Thu, 26 Nov 2026 11:04:03 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1xWejk-0008Rt-MF; Thu, 26 Nov 2026 14:02:28 -0500 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 1xWejF-00084M-Ar for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:58 -0500 Received: from mail-ej1-x636.google.com ([2a00:1450:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1xWej9-0005EK-8C for qemu-devel@nongnu.org; Thu, 26 Nov 2026 14:01:53 -0500 Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-c4d427836e9so971236966b.1 for ; Thu, 26 Nov 2026 11:01:47 -0800 (PST) Received: from tulp.my.domain ([2001:1c02:1a15:3000:2727:f7d1:9628:aa81]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-c513ae6663esm786278766b.21.2026.11.26.11.01.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 26 Nov 2026 11:01:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1795719706; x=1796324506; darn=nongnu.org; h=content-transfer-encoding:content-type: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=38dWrsSr7dq7CGW7X5t+PZK65OCbdGdS+3mjFfeGmUY=; b=psSOAge+TIlXoMu+/HAUCux7p4TNb2tgMW0DxEJ916kc0f+VvytR55f9HTUjFC3/2d fq31G0vzy3cD56TU3RaetzSYWV88TLhaVBsutDwK5fjDHQwjFSciWMcyFGdryDobplC6 YFeyNSbvmbqqlojlboguehzI/bPRalF1jC+UljJWP9FYsU+rO8yCeqVUJw8lo5g68oNU Eu+MotC9/JyhDE40dXBeMyK3soMmscCVGHaaRcYwK+oVzfvY27/cUROuc3mBCxxlZS1B hwESHzIallAWwO24frXup4i0w+LPCHP81giZ5VjJmxyReEHnzOm1JI9ShlYMCgdo2TRZ dQcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1795719706; x=1796324506; h=content-transfer-encoding:content-type: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=38dWrsSr7dq7CGW7X5t+PZK65OCbdGdS+3mjFfeGmUY=; b=D0DjpYYiicp/HP7cxeB6Ai73klp3qhp07jDbmNkzt6mueq1zJoN7/LMM/y4+qaVOEl rBX1DdMPq1+nNTU8cDI1Wao+OQe/ZeeucNkFhXJbIhbXNsjgVBVjJnHERfb0QJ8ADvpM eAdaKEARe7EsyXTVMabrp8D3e7KeCDMOljZBh7u+WgcQTlO0KR01gGWNJrZAFYeo8K4f Rx6BRz5kl2WTnKklxY/ag27LaQyeqeo7JNCg74VgtNU0HrbYIlfjBmh8+J2d6a0U36Kk iT/Eu4tZJlNqHV1ZMId/2M0YjTawILIsGm/vKp/hrr0TTkI1H7Voy++YaGNLHLTYsx1P B9mg== X-Gm-Message-State: APuU4Z/W6EQTBRY7AVKTTTyJthVhSq1QilKwhXuv9R50LMNQfgEa6S52 jRd0li38w93S54AsEU43qdkdKRhE0TZoK2KMkUljO5lbkK2DKs3UcZHerS4C8BbjY+g= X-Gm-Gg: AZFdTZenrbCqTgfEp0ra+zDyJojDDywMt5+7nHPxEib/+r9Ce5Zg1C6ERd1+eF7mYKY shWx1WRKuxMnF9Jwy4mWnaszbzGbLaaAx5uBGaWszYVtmMOnZcRl3gtd9Tq08qprwrPs9jSipDA +TH5xH2eh+qXzJEAkSktc54gsdBlGf76ee5iuMLAMf5rfUhz6OYIex2AhcnDiv5xeSjFeJmhEX9 /02KNlDx5uJXDYeUptmR+E7We8vY0ERl7j4VkF4mZp8Ou7+cuVj32eDBmxJZfCgObWvWqIajirY 1Fye+WWvAJRTjlthsL/88rUFx/coEmI8A5whN0OvxjZAlVFUkt55RS2bJzkp+N5euHv20GEZ1Y6 vGp+xEhvcnFB/217/gayi4+pYPifYtBa2Sk8vMHNkZvPsiR77WAsu9sIGJBIxtViPheroKsLD6D Ot3PRr+vQ/yMgHjXU4Al3QW0AtloNPhUdddSbEiK5RJNHHeqZkS4iDtaKGKjB+M4Z1g+ghG8svO G2lt9+sUDckO2gFcZZU9QiOr2aD0/68DdHkCozIisOeAocCAnnL83WQDQv4j3JRsrFmoh3HQTkR XCq+V1xFwAhCZiYKR319oflA/DMoE5vPhTnF X-Received: by 2002:a17:907:6d15:b0:c51:5589:2ff2 with SMTP id a640c23a62f3a-c5155898309mr1525215766b.9.1795719706502; Thu, 26 Nov 2026 11:01:46 -0800 (PST) From: Roman Bogorodskiy To: qemu-devel@nongnu.org Cc: Roman Bogorodskiy , =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= , Kevin Wolf , Hanna Reitz , qemu-block@nongnu.org (open list:Block layer core) Subject: [PATCH v3 10/10] iotests: fix test 211 Date: Thu, 26 Nov 2026 20:00:53 +0100 Message-ID: <20261126190054.40844-11-bogorodskiy@gmail.com> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261126190054.40844-1-bogorodskiy@gmail.com> References: <20261126190054.40844-1-bogorodskiy@gmail.com> 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=2a00:1450:4864:20::636; envelope-from=bogorodskiy@gmail.com; helo=mail-ej1-x636.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, 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: 1795719845840158501 Test 211 compares "qemu-img map" output against a fixed expected layout. As this layout depends on the host filesystem, the test might fail. Move away from direct output comparison and ensure correctness by asserting the essential fields. Signed-off-by: Roman Bogorodskiy Reviewed-by: Daniel P. Berrang=C3=A9 --- tests/qemu-iotests/211 | 19 ++++++++++++++++++- tests/qemu-iotests/211.out | 1 - 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/tests/qemu-iotests/211 b/tests/qemu-iotests/211 index 1a3b4596c8..0b1fa7b33d 100755 --- a/tests/qemu-iotests/211 +++ b/tests/qemu-iotests/211 @@ -107,7 +107,24 @@ with iotests.FilePath('t.vdi') as disk_path, \ vm.shutdown() =20 iotests.img_info_log(disk_path) - iotests.log(iotests.qemu_img_map(disk_path)) + img_map =3D iotests.qemu_img_map(disk_path) + + assert len(img_map) > 0 + assert img_map[0]['start'] =3D=3D 0 + mapping_offset =3D img_map[0]['offset'] - img_map[0]['start'] + for i, ext in enumerate(img_map): + assert ext['length'] > 0 + assert ext['compressed'] is False + assert ext['present'] is True + assert ext['data'] is True + assert ext['depth'] =3D=3D 0 + assert 'offset' in ext + if i !=3D 0: + assert ext['offset'] - ext['start'] =3D=3D mapping_offset + assert img_map[i - 1]['start'] + img_map[i - 1]['length'] =3D= =3D \ + ext['start'] + + assert img_map[-1]['start'] + img_map[-1]['length'] =3D=3D size =20 # # Invalid BlockdevRef diff --git a/tests/qemu-iotests/211.out b/tests/qemu-iotests/211.out index ff9f9a6913..caf5caae5e 100644 --- a/tests/qemu-iotests/211.out +++ b/tests/qemu-iotests/211.out @@ -53,7 +53,6 @@ file format: IMGFMT virtual size: 32 MiB (33554432 bytes) cluster_size: 1048576 =20 -[{"compressed": false, "data": true, "depth": 0, "length": 3072, "offset":= 1024, "present": true, "start": 0, "zero": false}, {"compressed": false, "= data": true, "depth": 0, "length": 33551360, "offset": 4096, "present": tru= e, "start": 3072, "zero": true}] =3D=3D=3D Invalid BlockdevRef =3D=3D=3D =20 {"execute": "blockdev-create", "arguments": {"job-id": "job0", "options": = {"driver": "vdi", "file": "this doesn't exist", "size": 33554432}}} --=20 2.56.0