From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on dcvr.yhbt.net X-Spam-Level: X-Spam-Status: No, score=-4.0 required=3.0 tests=ALL_TRUSTED,BAYES_00 shortcircuit=no autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 0BE0A1FC0D for ; Tue, 9 Feb 2021 08:09:39 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 10/11] lei: replace "I:"-prefixed info messages with "#" Date: Tue, 9 Feb 2021 07:09:36 -0100 Message-Id: <20210209080937.4678-11-e@80x24.org> In-Reply-To: <20210209080937.4678-1-e@80x24.org> References: <20210209080937.4678-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: The "#" is what TAP uses, which is also consistent with what our (and many other) test suites emit. --- lib/PublicInbox/LEI.pm | 6 +++--- t/lei.t | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/lib/PublicInbox/LEI.pm b/lib/PublicInbox/LEI.pm index e29b13c3..5f265087 100644 --- a/lib/PublicInbox/LEI.pm +++ b/lib/PublicInbox/LEI.pm @@ -559,7 +559,7 @@ sub _lei_cfg ($;$) { open my $fh, '>>', $f or die "open($f): $!\n"; @st = stat($fh) or die "fstat($f): $!\n"; $cur_st = pack('dd', $st[10], $st[7]); - qerr($self, "I: $f created") if $self->{cmd} ne 'config'; + qerr($self, "# $f created") if $self->{cmd} ne 'config'; } my $cfg = PublicInbox::Config::git_config_dump($f); $cfg->{-st} = $cur_st; @@ -619,7 +619,7 @@ sub lei_init { my @cur = stat($cur) if defined($cur); $cur = File::Spec->canonpath($cur // $dir); my @dir = stat($dir); - my $exists = "I: leistore.dir=$cur already initialized" if @dir; + my $exists = "# leistore.dir=$cur already initialized" if @dir; if (@cur) { if ($cur eq $dir) { _lei_store($self, 1)->done; @@ -638,7 +638,7 @@ E: leistore.dir=$cur already initialized and it is not $dir } lei_config($self, 'leistore.dir', $dir); _lei_store($self, 1)->done; - $exists //= "I: leistore.dir=$dir newly initialized"; + $exists //= "# leistore.dir=$dir newly initialized"; return qerr($self, $exists); } diff --git a/t/lei.t b/t/lei.t index 8e771eb5..4785acca 100644 --- a/t/lei.t +++ b/t/lei.t @@ -49,7 +49,7 @@ my $test_help = sub { my $ok_err_info = sub { my ($msg) = @_; - is(grep(!/^I:/, split(/^/, $lei_err)), 0, $msg) or + is(grep(!/^#/, split(/^/, $lei_err)), 0, $msg) or diag "$msg: err=$lei_err"; };