From nobody Mon Feb 9 06:26:32 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=1617972664; cv=none; d=zohomail.com; s=zohoarc; b=AnRK37D+DqMmQDT8cIBWMD1GVJiirpGwr2aeuwcHretqbd1ztwkdYnZkYS4WzKJx2Yc5UF0vGvYAb8hy2ZFOD/GnTGyDUR5g/Hk2kFmQo/qqEig6sMFsJOUZKmKARbI/NKVtBla2ZpnmIHz8yWeSBEJdkN6I+wQiGTDJ4ojbVzs= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617972664; 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=+O9pXS7o8r3pdR5qiOdK4WwGLE+oW8vDfE+EajGMzog=; b=P+Uhr59kpCTBZLAG6/Iaf0o8cyv4k/97vVP+L9qyfkys0HdAom5ujQCXiJOJlOS57jzepjl3L3gUN3PLBS9djIScDlub4xo4Mle9TUlCsLOvnslZcaDNmqCABfo+Ngi90eXZXH9OOq8ALLipUEuThldIekYTxt0zBVqKHCQyP7A= 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 1617972664372429.4232082374816; Fri, 9 Apr 2021 05:51:04 -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-65-jQi4z8sgOqi0Xi1sjjURPQ-1; Fri, 09 Apr 2021 08:50:59 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.phx2.redhat.com [10.5.11.16]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id F2CC71006C86; Fri, 9 Apr 2021 12:50:52 +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 CEE605C1D5; Fri, 9 Apr 2021 12:50:52 +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 8C7D61806D1C; Fri, 9 Apr 2021 12:50:52 +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 139CopRW008392 for ; Fri, 9 Apr 2021 08:50:51 -0400 Received: by smtp.corp.redhat.com (Postfix) id 989545C541; Fri, 9 Apr 2021 12:50:51 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 029D45C3E9 for ; Fri, 9 Apr 2021 12:50:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617972663; 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=+O9pXS7o8r3pdR5qiOdK4WwGLE+oW8vDfE+EajGMzog=; b=Yi4nil3Nblodzk1hPG5fZ4SGfbN2pGgYQGVdNkRRSk9wm2i0d1m5Bsc0HxWhd9+KXkYL6g HjtzgNzbqDxWxkmvVsU2tgyG7ZS5btiWOezSUufrBUhPfLeWCBSSJK89yG8PuVXG75WBqr jlJaR/xtPkOXPp79n+L7A26bPR7s8T0= X-MC-Unique: jQi4z8sgOqi0Xi1sjjURPQ-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH v2 06/25] tests: storagepoolxml2argvtest: Use integrated command path stripping Date: Fri, 9 Apr 2021 14:50:08 +0200 Message-Id: <5afb08a00c406519320b405569fde229d2da4240.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.16 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" Replace virTestClearCommandPath by virCommandToStringFull which allows to strip the command prefix internally. Signed-off-by: Peter Krempa --- tests/storagepoolxml2argvtest.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/storagepoolxml2argvtest.c b/tests/storagepoolxml2argvtes= t.c index 967d1f21a8..0279437f63 100644 --- a/tests/storagepoolxml2argvtest.c +++ b/tests/storagepoolxml2argvtest.c @@ -74,12 +74,11 @@ testCompareXMLToArgvFiles(bool shouldFail, goto cleanup; }; - if (!(actualCmdline =3D virCommandToString(cmd, false))) { + if (!(actualCmdline =3D virCommandToStringFull(cmd, false, true))) { VIR_TEST_DEBUG("pool type '%s' failed to get commandline", defType= Str); goto cleanup; } - virTestClearCommandPath(actualCmdline); if (virTestCompareToFile(actualCmdline, cmdline) < 0) goto cleanup; --=20 2.30.2