Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists1p.gnu.org (lists1p.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id B384AC982FA for ; Tue, 22 Sep 2026 20:23:23 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists1p.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1x96zZ-0008N1-EE; Tue, 22 Sep 2026 16:21:30 -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 1x96yt-0006Oh-AC for qemu-devel@nongnu.org; Tue, 22 Sep 2026 16:20:50 -0400 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1x96yq-0008Rf-Ij for qemu-devel@nongnu.org; Tue, 22 Sep 2026 16:20:45 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1790108443; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=P0XH0uLxI++XJ5Cay4xgn4RGFBykELuT80ck6dvsPn4=; b=Wg+lJ9LLD40/Oh1JqclMWG2/w5NYx2LpdoBW5HoTg/dZAi/WSkgqoDbV6+UQmr4GhuV8MJ akkYbUdISo8NfkeJ64aP8ciKKFayvXvq3+c9hYlBjw3w8N9nvSCHRcU2MnGfcRgBhf5Rt5 TAViShSX1Y0fCpXsG/lIgTNjh9AYnSg= Received: from mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-529-LvDF3dK1OomYuAzP1cRNHw-1; Tue, 22 Sep 2026 16:20:40 -0400 X-MC-Unique: LvDF3dK1OomYuAzP1cRNHw-1 X-Mimecast-MFC-AGG-ID: LvDF3dK1OomYuAzP1cRNHw_1790108439 Received: from mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.95]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-03.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 7C5F61944AA8; Tue, 22 Sep 2026 20:20:39 +0000 (UTC) Received: from localhost (headnet03.pony-001.prod.iad2.dc.redhat.com [10.2.32.114]) by mx-prod-int-10.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 61BFC418; Tue, 22 Sep 2026 20:20:37 +0000 (UTC) From: =?utf-8?q?Marc-Andr=C3=A9_Lureau?= Date: Wed, 23 Sep 2026 00:17:32 +0400 Subject: [PATCH 25/88] qemu-iotests/298: migrate away from HMP MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit Message-Id: <20260923-nohmp-v1-25-ebc029d4bd80@redhat.com> References: <20260923-nohmp-v1-0-ebc029d4bd80@redhat.com> In-Reply-To: <20260923-nohmp-v1-0-ebc029d4bd80@redhat.com> To: qemu-devel@nongnu.org Cc: Kevin Wolf , =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Hanna Reitz , qemu-block@nongnu.org X-Developer-Signature: v=1; a=openpgp-sha256; l=1607; i=marcandre.lureau@redhat.com; h=from:subject:message-id; bh=PK60ryL7u5V0T+pSIiGWHm87fGvM3YmsFT8n1+/1cUE=; b=owEBbQKS/ZANAwAKAdro4Ql1lpzlAcsmYgBqsuKvtlx8WmIg6+69jZHhBtbZjKFKCg4MJWjXe 0QZVLPjFiqJAjMEAAEKAB0WIQSHqb2TP4fGBtJ29i3a6OEJdZac5QUCarLirwAKCRDa6OEJdZac 5SNQEACFuJRhPi03uozOYmWbcPnKiHd79QlfqfUFd1dZkojNNUixfOp/P5q73O/h/alRyztXrVZ deZNTrZXM8GmcanlX2biSYp9XDYvmVVH57secjfwy7yqubmY8hhYiXoLH3vcP3uZ7KHTsfkvTue hFL58vQwpDe9LLcjaphyX0bEEUMtm82cp5neYJoVk6cEAJwx6ZEOfdqI+qvPGrOiON2jS4lPcEu 8Uh61oVIsxmm8avTTJSSa9d9YsiaTc4SWQbLldywZuIi3zNvwDnEf2dzh1K2dE5qV0XobsT4X18 5IBxTlkLvRIOrlNGIp7GAD/5g8QAzbSu1Ia71YhoxDMxKg2AAbZcE7A4BQ/UJpHJjROBMv1CYap E4smxwNi22a6HzjB2H3/wY07qx1FV0ugefnRUKo4V5bi7e86p4WR5bJNq32IuuWSPlWkRWIrgtb sD94o3pLYH9vA21thtaIFtD8GW1cDS7oO/6R1rsyzyhS8xD+OYFLYS9ahtwxxC0Jy3T1GMw12vX L901qKce0QKs83pi/cy/NQltIFgWDNBfVJNnAmElZlzcDJp1CjaBXwJaefe4zrWCKfWuxk7tZp1 Q8zCvVhFps6EQ1eBXVwXaNfSLuZ2Q5wD9R04h4v8RTOFuNySet0dUKH/9e2zAmvLtOREkoeDZUt AH8FP6k2E4u+Kfw== X-Developer-Key: i=marcandre.lureau@redhat.com; a=openpgp; fpr=87A9BD933F87C606D276F62DDAE8E10975969CE5 X-Scanned-By: MIMEDefang 3.6 on 10.30.177.95 Received-SPF: pass client-ip=170.10.129.124; envelope-from=marcandre.lureau@redhat.com; helo=us-smtp-delivery-124.mimecast.com X-Spam_score_int: 12 X-Spam_score: 1.2 X-Spam_bar: + X-Spam_report: (1.2 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=0.001, RCVD_IN_SBL_CSS=3.335, SPF_HELO_PASS=-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+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Signed-off-by: Marc-André Lureau --- tests/qemu-iotests/298 | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/tests/qemu-iotests/298 b/tests/qemu-iotests/298 index f2b94077f43a..7258ae6f141f 100755 --- a/tests/qemu-iotests/298 +++ b/tests/qemu-iotests/298 @@ -74,7 +74,7 @@ class TestPreallocateFilter(TestPreallocateBase): super().tearDown() def test_prealloc(self): - self.vm.hmp_qemu_io('drive0', 'write 0 1M') + self.vm.qmp_qemu_io('drive0', 'write 0 1M') self.check_big() def test_external_snapshot(self): @@ -87,7 +87,7 @@ class TestPreallocateFilter(TestPreallocateBase): # on reopen to r-o base preallocation should be dropped self.check_small() - self.vm.hmp_qemu_io('drive0', 'write 1M 1M') + self.vm.qmp_qemu_io('drive0', 'write 1M 1M') self.vm.cmd('block-commit', device='overlay') self.complete_and_wait() @@ -112,7 +112,7 @@ class TestPreallocateFilter(TestPreallocateBase): } }]) - self.vm.hmp_qemu_io('drive0', 'write 0 1M') + self.vm.qmp_qemu_io('drive0', 'write 0 1M') self.assertTrue(os.path.getsize(disk) == 25 * MiB) @@ -177,5 +177,4 @@ class TestTruncate(iotests.QMPTestCase): if __name__ == '__main__': - iotests.main(supported_fmts=['qcow2'], required_fmts=['preallocate'], - require_hmp=True) + iotests.main(supported_fmts=['qcow2'], required_fmts=['preallocate']) -- 2.56.0.rc0.29.g47ce80527c56