From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Michael Newsgroups: gmane.emacs.bugs Subject: bug#51037: [PATCH] Make `print-level` & `print-length` customizable in ERT batch tests Date: Tue, 12 Oct 2021 06:52:33 -0700 Message-ID: <86ily2mjtq.fsf@runbox.com> References: <86tuhvmtpl.fsf@runbox.com> <877deqec10.fsf@gnus.org> <83fste2u4i.fsf@gnu.org> <87ily94662.fsf@gnus.org> <83fstd1bth.fsf@gnu.org> <87czogslm4.fsf@gnus.org> Mime-Version: 1.0 Content-Type: text/plain; format=flowed Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="26833"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: mu4e 1.4.15; emacs 28.0.50 Cc: 51037@debbugs.gnu.org To: Lars Ingebrigtsen Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Tue Oct 12 15:53:22 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 1maIDZ-0006nc-Fh for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 15:53:21 +0200 Original-Received: from localhost ([::1]:42598 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1maIDX-00087z-PA for geb-bug-gnu-emacs@m.gmane-mx.org; Tue, 12 Oct 2021 09:53:19 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:49130) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1maIDG-000859-PC for bug-gnu-emacs@gnu.org; Tue, 12 Oct 2021 09:53:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]:56856) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1maIDG-0007PU-GN for bug-gnu-emacs@gnu.org; Tue, 12 Oct 2021 09:53:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1maIDG-0007l5-Fi for bug-gnu-emacs@gnu.org; Tue, 12 Oct 2021 09:53:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Michael Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 12 Oct 2021 13:53: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.163404677629793 (code B ref 51037); Tue, 12 Oct 2021 13:53:02 +0000 Original-Received: (at 51037) by debbugs.gnu.org; 12 Oct 2021 13:52:56 +0000 Original-Received: from localhost ([127.0.0.1]:40164 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maID9-0007kT-Kx for submit@debbugs.gnu.org; Tue, 12 Oct 2021 09:52:55 -0400 Original-Received: from aibo.runbox.com ([91.220.196.211]:34142) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1maID7-0007kD-D5 for 51037@debbugs.gnu.org; Tue, 12 Oct 2021 09:52:54 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=runbox.com; s=selector2; h=Content-Type:MIME-Version:Message-ID:Date:In-reply-to:Subject :Cc:To:From:References; bh=8xEwethprZLzJ4NRbm9iXba+oE33JPbWMblbXaEMObc=; b=qs 5DuopaZP8YkG3ZxIc+GCmrDYuhaL5hEH5UZPNq9dX0Eok4aRcKJT1oUIVPRORUmIELk7pktP38qUG FXU+8hRV0vdQKrdPCSQvhIu1Yyu0QAUubKiRAZa5RngjNkPM/ei6d8xRqwa3mmcgYRKXOtF/wdGM9 JPnkPnqgOpdSMxAIVo8Fj+xEHTiQrMWgPidX7+vcxGzEowoVBMZ09A4uySYopXeHjq7yBdAdTbZb8 ucvRxFjJYqNiswTHncAsPMyifnmd5Rf2UclQ9iH968fVxblPl89AO693PvgCNgSEHXMPub2pUrVF8 lKZp3ZyBLSg0Z05BOOGAxsfjDfcEi9pw==; Original-Received: from [10.9.9.74] (helo=submission03.runbox) by mailtransmit02.runbox with esmtp (Exim 4.86_2) (envelope-from ) id 1maID5-0004R5-AV; Tue, 12 Oct 2021 15:52:51 +0200 Original-Received: by submission03.runbox with esmtpsa [Authenticated ID (942723)] (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) id 1maICr-0002JG-TZ; Tue, 12 Oct 2021 15:52:38 +0200 In-reply-to: <87czogslm4.fsf@gnus.org> 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:217030 Archived-At: > 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. Sorry to chime-in late, but my patch does _not_ affect the printing of backtraces, just results. That said, I do agree with Eli about the truncated backtraces often being useless; what do you think of another variable controlling that... `ert-batch-full-backtraces` or something? -- Michael