From nobody Mon Feb 9 07:43:02 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) client-ip=207.211.31.120; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-1.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1588186273; cv=none; d=zohomail.com; s=zohoarc; b=AsN4OZYF15mQ7uH2EXxnkrxV4wZwIOkRNQm256lYtO0dyHL5uT8EnDwfbeFQDkuv3lSe9Q0xfbfqd3DtCxbedsvCujkM09X7GGZyffb/znevBr9u1q/yC3VFkk8RpJjVyIbK4zoWuQ+lAV+nn9V0v8/zdLVPOIvXaH1UTtFGduQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1588186273; h=Content-Type:Content-Transfer-Encoding:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=OlTEW8DpZ33xTSK4FAQopnhN/8BI1uPeAAOLXyyEm8E=; b=F5cswNNsiLmYgZTLg+yYP+l9UdPHwyhNbT78pJ4YON11GSdCaOPkwNkKbtaD7bRH5+12gVZQFqStCvpxPB7Y6SpHRPVL4kFEqUYUGSAnHHgFXf1Ew2w0iwnUXMThJelXk+iLfsP+Z2cQJS/u1EjAACViX5QnlsGJUhOut1ylf1Y= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 207.211.31.120 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by mx.zohomail.com with SMTPS id 1588186273147276.2131914968413; Wed, 29 Apr 2020 11:51:13 -0700 (PDT) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-359-eMc3Q9fxOtCKGhbzKGj6Iw-1; Wed, 29 Apr 2020 14:50:01 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id C58208064DF; Wed, 29 Apr 2020 18:49:55 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A049C605CD; Wed, 29 Apr 2020 18:49:55 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 605FD180530B; Wed, 29 Apr 2020 18:49:55 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 03TInVpw001577 for ; Wed, 29 Apr 2020 14:49:31 -0400 Received: by smtp.corp.redhat.com (Postfix) id F30365C241; Wed, 29 Apr 2020 18:49:30 +0000 (UTC) Received: from localhost.localdomain.com (unknown [10.40.208.39]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6A9E85C1BE for ; Wed, 29 Apr 2020 18:49:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1588186271; h=from:from:sender:sender: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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=OlTEW8DpZ33xTSK4FAQopnhN/8BI1uPeAAOLXyyEm8E=; b=VweNRyU8+uAi1EpoiXQTQvTbabyZsTqu5oGdjvqxs6zYuotLcyrdhgrkI+5K7YPqDA2hNU CWfTllfZBXV7CNgh5dZtRsWbHPz9lYIJF/Sn1BxYk5aPEjQew47QDChqaFRibDUPq8/TtL lRci9O9MsuHKky9zzW/Qe9zYjyUscTA= X-MC-Unique: eMc3Q9fxOtCKGhbzKGj6Iw-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 09/15] testQemuHotplugCpuPrepare: Allow deprecated commands for non-modern cpu hotplug test Date: Wed, 29 Apr 2020 20:49:09 +0200 Message-Id: In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-loop: libvir-list@redhat.com X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Type: text/plain; charset="utf-8" We have a few cases validating that the code behaves correctly in pre-modern hotplug era. This is controled by the 'modern' flag for the test. Since 'cpu-add' command is now deprecated in qemu, there is a modern replacement for it, and the test output is checked against expected commands we can skip schema validation for the legacy command. Signed-off-by: Peter Krempa Reviewed-by: J=C3=A1n Tomko --- tests/qemuhotplugtest.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/qemuhotplugtest.c b/tests/qemuhotplugtest.c index 849e7e7636..724f640aef 100644 --- a/tests/qemuhotplugtest.c +++ b/tests/qemuhotplugtest.c @@ -457,6 +457,9 @@ testQemuHotplugCpuPrepare(const char *test, if (fail) qemuMonitorTestAllowUnusedCommands(data->mon); + if (!data->modern) + qemuMonitorTestSkipDeprecatedValidation(data->mon, true); + priv->mon =3D qemuMonitorTestGetMonitor(data->mon); virObjectUnlock(priv->mon); --=20 2.26.2