From nobody Fri Apr 19 10:44:34 2024 Delivered-To: importer@patchew.org Received-SPF: pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) client-ip=209.132.183.28; envelope-from=patchew-devel-bounces@redhat.com; helo=mx1.redhat.com; Authentication-Results: mx.zohomail.com; spf=pass (zoho.com: domain of redhat.com designates 209.132.183.28 as permitted sender) smtp.mailfrom=patchew-devel-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com Return-Path: Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by mx.zohomail.com with SMTPS id 1547393244742712.2963094619574; Sun, 13 Jan 2019 07:27:24 -0800 (PST) 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 mx1.redhat.com (Postfix) with ESMTPS id 49BE67F3F1; Sun, 13 Jan 2019 15:27:23 +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 2A01D4A6; Sun, 13 Jan 2019 15:27:23 +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 1E1AF1832E8F; Sun, 13 Jan 2019 15:27:23 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id x0DFRMmo029599 for ; Sun, 13 Jan 2019 10:27:22 -0500 Received: by smtp.corp.redhat.com (Postfix) id 1FA8E18155; Sun, 13 Jan 2019 15:27:22 +0000 (UTC) Received: from donizetti.redhat.com (ovpn-112-16.ams2.redhat.com [10.36.112.16]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6FAF47D590 for ; Sun, 13 Jan 2019 15:27:19 +0000 (UTC) From: Paolo Bonzini To: patchew-devel@redhat.com Date: Sun, 13 Jan 2019 16:27:18 +0100 Message-Id: <20190113152718.2969-1-pbonzini@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.14 X-loop: patchew-devel@redhat.com Subject: [Patchew-devel] [PATCH] testing: disable newline translation X-BeenThere: patchew-devel@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Patchew development and discussion list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Transfer-Encoding: quoted-printable Sender: patchew-devel-bounces@redhat.com Errors-To: patchew-devel-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.16 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.25]); Sun, 13 Jan 2019 15:27:23 +0000 (UTC) Content-Type: text/plain; charset="utf-8" Newline translation causes carriage returns to be translated to newlines. = This is undesirable as it causes progress updates to be reported each on its own li= ne. Signed-off-by: Paolo Bonzini Reviewed-by: Fam Zheng --- patchew-cli | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchew-cli b/patchew-cli index cfc106e..44fd3e3 100755 --- a/patchew-cli +++ b/patchew-cli @@ -510,7 +510,7 @@ class TesterCommand(SubCommand): print(" Project:", r["project"]) print(" Identity:", str(r["identity"])) logf =3D open(os.path.join(wd, "log"), "w+", encoding=3D"utf-8", - errors=3D"ignore") + newline=3D'', errors=3D"ignore") test_cmd =3D r["test"]["script"] script =3D r["test"]["script"].strip() + "\n" test_script =3D self._make_script(wd, "run", script) --=20 2.20.1 _______________________________________________ Patchew-devel mailing list Patchew-devel@redhat.com https://www.redhat.com/mailman/listinfo/patchew-devel