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 D83E21FB0F for ; Wed, 17 Feb 2021 10:07:07 +0000 (UTC) From: Eric Wong To: meta@public-inbox.org Subject: [PATCH 06/11] tests: setup_public_inboxes: use IMAP-friendly newsgroups Date: Wed, 17 Feb 2021 09:07:02 -0100 Message-Id: <20210217100707.6796-7-e@80x24.org> In-Reply-To: <20210217100707.6796-1-e@80x24.org> References: <20210217100707.6796-1-e@80x24.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit List-Id: -imapd won't support newsgroups ending with /\.[0-9]+\z/ since it reserves those for partitioning inboxes into 50K slices. So bump the home[0-9]+ version and switch to IMAP-friendly newsgroup names. --- MANIFEST | 6 +++--- lib/PublicInbox/TestCommon.pm | 4 ++-- t/{home1 => home2}/.gitignore | 0 t/{home1 => home2}/Makefile | 0 t/{home1 => home2}/README | 0 5 files changed, 5 insertions(+), 5 deletions(-) rename t/{home1 => home2}/.gitignore (100%) rename t/{home1 => home2}/Makefile (100%) rename t/{home1 => home2}/README (100%) diff --git a/MANIFEST b/MANIFEST index 1794d930..82068900 100644 --- a/MANIFEST +++ b/MANIFEST @@ -334,9 +334,9 @@ t/git.fast-import-data t/git.t t/gzip_filter.t t/hl_mod.t -t/home1/.gitignore -t/home1/Makefile -t/home1/README +t/home2/.gitignore +t/home2/Makefile +t/home2/README t/html_index.t t/httpd-corner.psgi t/httpd-corner.t diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index d6b7d20e..c5070cfd 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -540,7 +540,7 @@ EOM # returns the pathname to a ~/.public-inbox/config in scalar context, # ($test_home, $pi_config_pathname) in list context sub setup_public_inboxes () { - my $test_home = "t/home1"; + my $test_home = "t/home2"; my $pi_config = "$test_home/.public-inbox/config"; my $stamp = "$test_home/setup-stamp"; my @ret = ($test_home, $pi_config); @@ -555,7 +555,7 @@ sub setup_public_inboxes () { local $ENV{PI_CONFIG} = $pi_config; for my $V (1, 2) { run_script([qw(-init), "-V$V", "t$V", - '--newsgroup', "t.$V", + '--newsgroup', "t.v$V", "$test_home/t$V", "http://example.com/t$V", "t$V\@example.com" ]) or BAIL_OUT "init v$V"; } diff --git a/t/home1/.gitignore b/t/home2/.gitignore similarity index 100% rename from t/home1/.gitignore rename to t/home2/.gitignore diff --git a/t/home1/Makefile b/t/home2/Makefile similarity index 100% rename from t/home1/Makefile rename to t/home2/Makefile diff --git a/t/home1/README b/t/home2/README similarity index 100% rename from t/home1/README rename to t/home2/README