From nobody Sun Feb 8 18:31:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 216.205.24.124 as permitted sender) client-ip=216.205.24.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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=1617972723; cv=none; d=zohomail.com; s=zohoarc; b=l+Tjk4u8cYogENY76I4eX7KL8LMtTdjcVDIrU5FLu+8c0T6mNqLFe5SH216zlUcJPT+J2CdNus1Ah55boBw2xkfQYZanlDCl2Hdo+4a4O6jQH0gg0C34DAK7w+PeFih94emlwKr3tCqtvnPwDF/iGyo6v2bqXXGxIsiyC0ht0VE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617972723; 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=5Mohkfycc6eaxjsxfvpqjDf0kPzxA5KoAhm/xZ9Wtbk=; b=Zk/oZyIVoFVUaFLtgNHsZWn42pa7icHq562KYfC2FrX0rzA5wycV0T900QrF7oFfiQG92QBLsx3uy0yurkPqom6WgBogFY01EVRN/2gLMsoac+/49vXTopEQFgSDho9y5JZqLY9THYfhBeuZqD+gAUd2gA7FHww7GSa5jT4CqWI= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 216.205.24.124 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-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [216.205.24.124]) by mx.zohomail.com with SMTPS id 1617972723900673.7070869064244; Fri, 9 Apr 2021 05:52:03 -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-597-5vnCIwWUOJOtoYV85BPeFQ-1; Fri, 09 Apr 2021 08:51:11 -0400 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 9E8751006C80; Fri, 9 Apr 2021 12:51:04 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 767166EF50; Fri, 9 Apr 2021 12:51:04 +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 329E655352; Fri, 9 Apr 2021 12:51:04 +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 139Cp2e8008549 for ; Fri, 9 Apr 2021 08:51:02 -0400 Received: by smtp.corp.redhat.com (Postfix) id 51F8C5C541; Fri, 9 Apr 2021 12:51:02 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id ABC035C3E9 for ; Fri, 9 Apr 2021 12:50:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617972722; 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=5Mohkfycc6eaxjsxfvpqjDf0kPzxA5KoAhm/xZ9Wtbk=; b=TR1QauzZYT866Entys2prSPiDZPiOUEw6iYf3jpCIW7nRqQkjUZ/Rv9GW/OjziZ2ODjlPp jDtPXfm4Xmr7kbkyPRDdF7WWp5XiiRM90C4iMRSkJAhdwjVHUYsQo8EFSccoQLLMAVRC+R DWaRVAEznaPkfpTr1CGDlCVt1bBl0AI= X-MC-Unique: 5vnCIwWUOJOtoYV85BPeFQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH v2 09/25] networkxml2firewalltest: Strip path from test output via virCommandSetDryRun Date: Fri, 9 Apr 2021 14:50:11 +0200 Message-Id: <98c445bd09cbab463784d8ea34a5ad42cd87e65d.1617972294.git.pkrempa@redhat.com> 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.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com 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" Enable the internal path clearing instead of using virTestClearCommandPath. Signed-off-by: Peter Krempa --- tests/networkxml2firewalltest.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/networkxml2firewalltest.c b/tests/networkxml2firewalltes= t.c index 2974d3f2af..16249c49fd 100644 --- a/tests/networkxml2firewalltest.c +++ b/tests/networkxml2firewalltest.c @@ -98,7 +98,7 @@ static int testCompareXMLToArgvFiles(const char *xml, char *actual; g_autoptr(virCommandDryRunToken) dryRunToken =3D virCommandDryRunToken= New(); - virCommandSetDryRun(dryRunToken, &buf, false, false, testCommandDryRun= , NULL); + virCommandSetDryRun(dryRunToken, &buf, false, true, testCommandDryRun,= NULL); if (!(def =3D virNetworkDefParseFile(xml, NULL))) goto cleanup; @@ -107,7 +107,6 @@ static int testCompareXMLToArgvFiles(const char *xml, goto cleanup; actual =3D actualargv =3D virBufferContentAndReset(&buf); - virTestClearCommandPath(actualargv); /* The first network to be created populates the * libvirt global chains. We must skip args for --=20 2.30.2