]> Sergey Matveev's repositories - public-inbox.git/commitdiff
tests: setup_public_inboxes: use IMAP-friendly newsgroups
authorEric Wong <e@80x24.org>
Wed, 17 Feb 2021 10:07:02 +0000 (09:07 -0100)
committerEric Wong <e@80x24.org>
Thu, 18 Feb 2021 07:57:18 +0000 (03:57 -0400)
-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
lib/PublicInbox/TestCommon.pm
t/home2/.gitignore [moved from t/home1/.gitignore with 100% similarity]
t/home2/Makefile [moved from t/home1/Makefile with 100% similarity]
t/home2/README [moved from t/home1/README with 100% similarity]

index 1794d930b934bfff6939bb5a042fca8b778e2cfd..820689002f5fef511b545da7cbb7e760667cedf5 100644 (file)
--- 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
index d6b7d20e385b1b7e68d98444ea570ac46cc671cb..c5070cfd43b020f32927dac557e8d521aba0bfe7 100644 (file)
@@ -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";
        }
similarity index 100%
rename from t/home1/.gitignore
rename to t/home2/.gitignore
similarity index 100%
rename from t/home1/Makefile
rename to t/home2/Makefile
similarity index 100%
rename from t/home1/README
rename to t/home2/README