From nobody Fri Mar 29 01:46:02 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.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 63.128.21.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=1610477505; cv=none; d=zohomail.com; s=zohoarc; b=GePMuPuw5oX/SKJodKkcLJRpRmNX3JT7B4AvI14WnIHf/Vmw8dY6NBCd0NpsEdpp2a0kzCRUBG606qLfReMvJandxhMGLwiEvdI/PJnQi28jHsnTNpDqpNvvcPLVv/ioIkanTt9muY0Sjka8H09XVGA+9GAe06/WVvY7rV8Mbwk= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1610477505; h=Content-Type:Content-Transfer-Encoding:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:To; bh=EjuGk3zAcThfJcPzWJ1cIWGzSNZW2Q4uXpCDSXUF5KY=; b=RjErhel0BWWa9PgbY6c6KTDg/zoZM7umN2GIKwCq97zUEhjrStgQTxt4DvOxevm4+Y6NKpGRvHsZ69qNW1AEGNebk8z1CXSjsOZ38OX8o86tkz9NXAuh4hogKlt9yfBQ+6S7lWtdxt9hl/UhpvQGaFfmLyGG7dUpK2maEHFHsz4= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.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 [63.128.21.124]) by mx.zohomail.com with SMTPS id 1610477505973654.4972109567166; Tue, 12 Jan 2021 10:51:45 -0800 (PST) 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-438-hQSMbQUIMzORH8VLDgN0ug-1; Tue, 12 Jan 2021 13:51:42 -0500 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 A514C10082F0; Tue, 12 Jan 2021 18:51:36 +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 B36495C239; Tue, 12 Jan 2021 18:51:35 +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 6F855180954D; Tue, 12 Jan 2021 18:51:33 +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 10CIpWf7030728 for ; Tue, 12 Jan 2021 13:51:32 -0500 Received: by smtp.corp.redhat.com (Postfix) id 1F81E5C23A; Tue, 12 Jan 2021 18:51:32 +0000 (UTC) Received: from speedmetal.lan (unknown [10.40.208.30]) by smtp.corp.redhat.com (Postfix) with ESMTP id 73FF45C239 for ; Tue, 12 Jan 2021 18:51:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1610477504; 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:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=EjuGk3zAcThfJcPzWJ1cIWGzSNZW2Q4uXpCDSXUF5KY=; b=Bw/0eK6OK7xwxSVkQKRCl+EWhu7WIy9HvTIA0sH0nHk8PXFB15rPKtqLR1PkBaNB8bi/Od soHXqGHkGDq66pnhX49irEWtVGb2nJnveQsqtGIDtRMc53TTTSn7P90FAhxI0Ls3rcB99J kzWQxW1w9+3M2UMfJzkqfiDfYeUU878= X-MC-Unique: hQSMbQUIMzORH8VLDgN0ug-1 From: Peter Krempa To: libvir-list@redhat.com Subject: [PATCH] test-wrap-argv.py: Actually print filename of offending script Date: Tue, 12 Jan 2021 19:51:27 +0100 Message-Id: <6c8e4cb2c8f258df7da054e917ca4ad01524175f.1610477487.git.pkrempa@redhat.com> 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" The error message doesn't actually print the filename of the offending file: Incorrect line wrapping in %file Signed-off-by: Peter Krempa Reviewed-by: Daniel Henrique Barboza --- scripts/test-wrap-argv.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/test-wrap-argv.py b/scripts/test-wrap-argv.py index 6b0d3511f3..9ec572b479 100755 --- a/scripts/test-wrap-argv.py +++ b/scripts/test-wrap-argv.py @@ -137,8 +137,8 @@ def rewrap(filename, in_place, check): stdin=3Dsubprocess.PIPE) diff.communicate(input=3Dnew.encode('utf-8')) - print("Incorrect line wrapping in $file", - file=3Dsys.stderr) + print("Incorrect line wrapping in '%s'" % + filename, file=3Dsys.stderr) print("Use test-wrap-argv.py to wrap test data files", file=3Dsys.stderr) return False --=20 2.29.2