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-ASN: 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 0C55A1F9F4; Mon, 22 Nov 2021 17:24:07 +0000 (UTC) Date: Mon, 22 Nov 2021 17:24:06 +0000 From: Eric Wong To: =?utf-8?B?SsO2cmcgUsO2ZGVs?= Cc: meta@public-inbox.org Subject: Re: [PATCH] t/lei-mirror: skip lei comparisons if lei missing Message-ID: <20211122172406.M956993@dcvr> References: <20211119185411.M766819@dcvr> <20211122065545.GA31379@dcvr> <20211122074241.M224754@dcvr> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: List-Id: Jörg Rödel wrote: > This seems to cause warnings: > > [ 56s] t/lei-lcat.t ................. ok > [ 57s] Useless use of sort in scalar context at t/lei-mirror.t line 175. > [ 59s] Use of uninitialized value in join or string at t/lei-mirror.t line 175. > [ 59s] t/lei-mirror.t ............... ok Oops :x I'll squash this in before pushing: diff --git a/t/lei-mirror.t b/t/lei-mirror.t index d6fa6db5e3cb..32a5b0390714 100644 --- a/t/lei-mirror.t +++ b/t/lei-mirror.t @@ -172,7 +172,8 @@ SKIP: { ok(run_script([qw(-index -Lbasic), "$d/t2"]), 'index v2'); SKIP: { - skip "lei didn't run", 2 if join(sort keys %created) ne 'v1v2'; + join('', sort(keys %created)) eq 'v1v2' or + skip "lei didn't run", 2; my $f = "$d/t1/public-inbox/msgmap.sqlite3"; my $ca = PublicInbox::Msgmap->new_file($f)->created_at; is($ca, $created{v1}, 'clone + index v1 synced ->created_at');