From nobody Sun Feb 8 18:14:37 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 170.10.133.124 as permitted sender) client-ip=170.10.133.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 170.10.133.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=1617808213; cv=none; d=zohomail.com; s=zohoarc; b=dlqH3clBFFkCFZC8fNCYCFHpbk4hfwU2+WiuNqKdI6ASUJeEWYJc09Ou5JvLsKFGRl2z8cIVcGT4X+u1TdsPl2l9GirgP9QB+V/FO9+PkjCihgYV8GILp3k12N9j47NvR7lYeZUAGMuDC4CaE9xa7o/BQ0qCfL1dy1eh52tAXT8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1617808213; 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=oGfdLzqzInBGnmMLi+p5UP9z/XU3PVObOaDBr8Ub9NPAS64F8mNPJXuiBOOHHTN3BLLRq2ePQy6an3lk0M+6+n42Ks4hJ02oqGlYbLObF6+7+BMh6TtStigOR4tx5YxT3Fo1nmWE0jrxzC7yOUfCyGY97L+H+AwwnLlWJiG9mGc= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 170.10.133.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 [170.10.133.124]) by mx.zohomail.com with SMTPS id 1617808213325808.9623822292516; Wed, 7 Apr 2021 08:10: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-264-cV1_DWgXOW2Qsbzi1z2XIg-1; Wed, 07 Apr 2021 11:10:09 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 1B33E80982E; Wed, 7 Apr 2021 15:10:05 +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 A0BE450331; Wed, 7 Apr 2021 15:10: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 77E3E1806D06; Wed, 7 Apr 2021 15:10:03 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 137FA1Eh031796 for ; Wed, 7 Apr 2021 11:10:01 -0400 Received: by smtp.corp.redhat.com (Postfix) id 565B019D7D; Wed, 7 Apr 2021 15:10:01 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.33]) by smtp.corp.redhat.com (Postfix) with ESMTP id 92E8A19C78 for ; Wed, 7 Apr 2021 15:10:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1617808212; 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=ZGdfe/RaixEMOV9TqJlkrlTpJSSgtzBeZmWaWgz82gTIG3eUFI/BmRQFPugDKBdtnu7ghN vTLKHWXlmJwsvWIJlphUoWXXjXQLuUJGJYMnc9srrq3MTnVmqpMX7lZlaPE0EtjMlkEn1D GLiMjrUd7tEzYXf7jXyt7mlT8J1esJA= X-MC-Unique: cV1_DWgXOW2Qsbzi1z2XIg-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH 06/24] tests: storagepoolxml2argvtest: Use integrated command path stripping Date: Wed, 7 Apr 2021 17:09:29 +0200 Message-Id: <4e20018502078c5348893fd5ccf2fd5772e7a2c9.1617807877.git.pkrempa@redhat.com> In-Reply-To: References: MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.84 on 10.5.11.23 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.12 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