From nobody Mon Sep 8 16:45:01 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) client-ip=8.43.85.245; envelope-from=devel-bounces@lists.libvirt.org; helo=lists.libvirt.org; Authentication-Results: mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass(p=reject dis=none) header.from=lists.libvirt.org ARC-Seal: i=1; a=rsa-sha256; t=1756478200; cv=none; d=zohomail.com; s=zohoarc; b=bqXQoxZAn3+PMXlOfaxHzsx7cbz5a419OBomRjwthvveW0QNHsxx3kzTRwQcc8HpjnUezAvpmGbCd6tvh250OEcu8YSmZw+Bp+iFxjNJN0hu2unPajmuy6xyx8nbVFEZPKLacGNUdq1ZrDLElstd3nLt5vhZpRETAUl4XOlx5Lc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1756478200; h=Content-Type:Content-Transfer-Encoding:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Owner:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Reply-To:Reply-To:References:Subject:Subject:To:To:Message-Id:Cc; bh=kr6QyBNg4hFgQ8mhZ9FTdqBBh1JVkzgQS3d7Yej3MG0=; b=QVS5q1JYHn8nBkxlnS7jbmmBb9TRP8dbZ8fClkIghLve/rdCnbZphCQSzcrGurxompB/riEf1pk9F54f7CQY3D+gjUVGZ/iBYGhjFwrCyBiCPLsDrXCY5ZNS3uMsNJYoreSH213dn7qRtaHy1m7fHV5EGeuYPnQpLiMVkMoyjmc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=fail; spf=pass (zohomail.com: domain of lists.libvirt.org designates 8.43.85.245 as permitted sender) smtp.mailfrom=devel-bounces@lists.libvirt.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.libvirt.org (lists.libvirt.org [8.43.85.245]) by mx.zohomail.com with SMTPS id 1756478200910780.6030576827861; Fri, 29 Aug 2025 07:36:40 -0700 (PDT) Received: by lists.libvirt.org (Postfix, from userid 993) id E536E442A8; Fri, 29 Aug 2025 10:36:39 -0400 (EDT) Received: from [172.19.199.3] (lists.libvirt.org [8.43.85.245]) by lists.libvirt.org (Postfix) with ESMTP id DA139443CA; Fri, 29 Aug 2025 10:20:26 -0400 (EDT) Received: by lists.libvirt.org (Postfix, from userid 993) id 186694412A; Fri, 29 Aug 2025 10:19:52 -0400 (EDT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (3072 bits) server-digest SHA256) (No client certificate requested) by lists.libvirt.org (Postfix) with ESMTPS id 91CC64412E for ; Fri, 29 Aug 2025 10:19:46 -0400 (EDT) Received: from mx-prod-mc-01.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-444-3Fvz8gUXPCCNiIt5LorRjw-1; Fri, 29 Aug 2025 10:19:44 -0400 Received: from mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.17]) (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-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id F1C561956089 for ; Fri, 29 Aug 2025 14:19:43 +0000 (UTC) Received: from speedmetal.redhat.com (unknown [10.44.22.3]) by mx-prod-int-05.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTP id 350071956095 for ; Fri, 29 Aug 2025 14:19:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-26) on lists.libvirt.org X-Spam-Level: X-Spam-Status: No, score=-1.5 required=5.0 tests=DKIM_INVALID,DKIM_SIGNED, MAILING_LIST_MULTI,RCVD_IN_DNSWL_LOW, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED, RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_PASS autolearn=unavailable autolearn_force=no version=4.0.1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1756477186; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=kr6QyBNg4hFgQ8mhZ9FTdqBBh1JVkzgQS3d7Yej3MG0=; b=FLIqQSg/8qvRkIg+0RTsFcdsg+PL44v8uTstlk00bqSp+iTmTwE0wyOZr4W+1YsBsf6B1U +NGslOYpExu+KP6zDFToCBD8c6gfHmrPwWRgXM1gP+2pa0tzU2L2oH2n5gVOGhB5b7WnFb orVPDI+wdU+iTAxXIZEg9hohnOxLv/A= X-MC-Unique: 3Fvz8gUXPCCNiIt5LorRjw-1 X-Mimecast-MFC-AGG-ID: 3Fvz8gUXPCCNiIt5LorRjw_1756477184 To: devel@lists.libvirt.org Subject: [PATCH 7/8] scripts: qemu-replies-tool: Add stable dump of 'query-command-line-options' Date: Fri, 29 Aug 2025 16:19:31 +0200 Message-ID: <34cd8660ce44bf65d4ab15f75a295c5b3ac7db24.1756477095.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.0 on 10.30.177.17 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: TkLW952MBI20G3w98xm_MUsPC36yeKxEltloOfVUODA_1756477184 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable Message-ID-Hash: U3DUE7SOP3G7ZTHU7GEBHTLZ5XUFT33D X-Message-ID-Hash: U3DUE7SOP3G7ZTHU7GEBHTLZ5XUFT33D X-MailFrom: pkrempa@redhat.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; loop; banned-address; header-match-devel.lists.libvirt.org-0; emergency; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.10 Precedence: list List-Id: Development discussions about the libvirt library & tools Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: Peter Krempa via Devel Reply-To: Peter Krempa X-ZohoMail-DKIM: fail (Header signature does not verify) X-ZM-MESSAGEID: 1756478202727116600 Content-Type: text/plain; charset="utf-8" From: Peter Krempa While 'query-command-line-options' is usually fairly stable (for comparing between two .replies files) it's simpler to compare it in the dumped variant. Signed-off-by: Peter Krempa --- scripts/qemu-replies-tool.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/scripts/qemu-replies-tool.py b/scripts/qemu-replies-tool.py index 7cda1d57ad..e5a1b2fb3e 100755 --- a/scripts/qemu-replies-tool.py +++ b/scripts/qemu-replies-tool.py @@ -500,6 +500,19 @@ def dump_machine_types(conv, dumpprefix): print(dumpprefix + '(machine alias) ' + a) +def dump_command_line_options(c, dumpprefix): + optpar =3D [] + + for opt in c['rep']['return']: + for par in opt['parameters']: + optpar.append('%s %s' % (opt['option'], par['name'])) + + optpar.sort() + + for o in optpar: + print(dumpprefix + '(cl-opt) ' + o) + + def dump_other(conv, dumpprefix): for c in conv: if c['cmd']['execute'] =3D=3D 'query-version': @@ -517,6 +530,9 @@ def dump_other(conv, dumpprefix): c['rep']['return']['p= resent'], c['rep']['return']['e= nabled'])) + if c['cmd']['execute'] =3D=3D 'query-command-line-options': + dump_command_line_options(c, dumpprefix) + def process_one(filename, args): try: --=20 2.51.0