From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.bugs Subject: bug#51037: [PATCH] Make `print-level` & `print-length` customizable in ERT batch tests Date: Thu, 07 Oct 2021 21:03:47 +0200 Message-ID: <87czogslm4.fsf@gnus.org> References: <86tuhvmtpl.fsf@runbox.com> <877deqec10.fsf@gnus.org> <83fste2u4i.fsf@gnu.org> <87ily94662.fsf@gnus.org> <83fstd1bth.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="17238"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux) Cc: sp1ff@runbox.com, 51037@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Thu Oct 07 21:04:17 2021 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYYgh-00046s-Bq for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Oct 2021 21:04:15 +0200 Original-Received: from localhost ([::1]:33154 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mYYgf-0002iD-Vz for geb-bug-gnu-emacs@m.gmane-mx.org; Thu, 07 Oct 2021 15:04:14 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51398) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mYYgU-0002i2-KE for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 15:04:03 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:36908) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1mYYgU-0001vd-DB for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 15:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1mYYgU-0002mk-6e for bug-gnu-emacs@gnu.org; Thu, 07 Oct 2021 15:04:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Lars Ingebrigtsen Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 07 Oct 2021 19:04:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 51037 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: patch Original-Received: via spool by 51037-submit@debbugs.gnu.org id=B51037.163363344110699 (code B ref 51037); Thu, 07 Oct 2021 19:04:02 +0000 Original-Received: (at 51037) by debbugs.gnu.org; 7 Oct 2021 19:04:01 +0000 Original-Received: from localhost ([127.0.0.1]:48454 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYYgT-0002mV-Ah for submit@debbugs.gnu.org; Thu, 07 Oct 2021 15:04:01 -0400 Original-Received: from quimby.gnus.org ([95.216.78.240]:40092) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1mYYgO-0002mF-GK for 51037@debbugs.gnu.org; Thu, 07 Oct 2021 15:04:00 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnus.org; s=20200322; h=Content-Type:MIME-Version:Message-ID:In-Reply-To:Date: References:Subject:Cc:To:From:Sender:Reply-To:Content-Transfer-Encoding: Content-ID:Content-Description:Resent-Date:Resent-From:Resent-Sender: Resent-To:Resent-Cc:Resent-Message-ID:List-Id:List-Help:List-Unsubscribe: List-Subscribe:List-Post:List-Owner:List-Archive; bh=chO2Wck/jp5FSQN2W9Uw0GAKh4ZfObvq6MP0iS0BqII=; b=K7yl+jhkkLKy+wqN7XVp+/+oV3 Go+10xFc3e5EbZdKvcbaujIXx6TVWO0z0pfjyOv8acf/xNFPvovNj+/yL6J0gqoPPXoU9GAxjl8LI 15Ve6GuQTqcDTDVaU7vNgAgo37jcFJSots9/3FV66R+J8kRGCf/2kj7f1sccOS5YsJpw=; Original-Received: from [84.212.220.105] (helo=elva) by quimby.gnus.org with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1mYYgF-0002Eo-NY; Thu, 07 Oct 2021 21:03:50 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAABGdBTUEAALGPC/xhBQAAACBj SFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAAFVBMVEUZKTEZKTIkOkUt SVdNU2JJc4v////jk2ZGAAAAAWJLR0QGYWa4fQAAAAd0SU1FB+UKBxI3MPRG5w8AAAG6SURBVDjL lZNNkhoxDIVl4ACWMgdoyxwgWMwesDlAKvT9rzKS7G7oYbKIiuqFPz/9WA8A4lzYgiJsgkmYRWoi ZJp2EeK0m/R8l1QgIn+v5SYfUuRWc5HrpILMWUG9nv6U/eGSW91fjucISJZfQZMsR9HbWT+/JkDM DiQjEMbDbxXsLwyQhkIYrZVju7Xc2g2AnKxAPq6H1upFFcheXIHNcaz13Ko0AEwdFEaThEi7PuiS iDm5JPjPBnfACwjaZnwB/loYgycLAb8BtDyKY3QgJS+59BA1VsDSNdqXA5cq8LaMJAQc0WuMQZTE odDOeBTRjyULq4T6g4iM6VeAG5D+BTgtuXQfBnhh6UXhgy+At+AZRSW0gPxKVEKsWzWXrIe2u6K3 bWZT8BO0nsvBWKG2aqDKBvSQdp8ftbyDfL7PcxsSCOMUEzp4SJk6oL5VDRIFc5WTXX4HXmULMH8q mFvVKk8AagQ6z060PkP/D/qWYYCHnAzgSGVey/cOigPivjiT2PA6vSQCL5LMBObcvL6xefIJujWK Ld+AEregVfHEaqQEneh1B2BWhNGL+zVCQHiLfj3AT/Hz6X/FFzD4giiy6Z5hAAAAJXRFWHRkYXRl OmNyZWF0ZQAyMDIxLTEwLTA3VDE4OjU1OjQ4KzAwOjAwZP3UgQAAACV0RVh0ZGF0ZTptb2RpZnkA MjAyMS0xMC0wN1QxODo1NTo0OCswMDowMBWgbD0AAAAASUVORK5CYII= X-Now-Playing: Tuxedomoon's _Desire_: "Desire" In-Reply-To: <83fstd1bth.fsf@gnu.org> (Eli Zaretskii's message of "Thu, 07 Oct 2021 11:25:14 +0300") X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.io gmane.emacs.bugs:216679 Archived-At: Eli Zaretskii writes: > Sorry, I don't think I understand: why would that make them > unreadable? Text terminals wrap long lines. Or what am I missing? > Can you perhaps show an example of such an unreadable error summary? If you have very long structures, a simple backtrace can take many screenfuls, which isn't what most people want or expect. > OK, but I was thinking about a more general problem, not just about > ERT. The backtraces displayed in batch-mode are truncated too early, > and that makes them useless many times. That's true. Programmers that need to debug these things should have an easy way to get complete backtraces, but I don't think users should be presented with them. So perhaps we should just introduce a new switch, like --complete-backtraces (or something) that would do the right thing both in general and in ert. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog: http://lars.ingebrigtsen.no