about summary refs log tree commit
path: root/t
diff options
context:
space:
mode:
authorEric Wong <e@yhbt.net>2020-02-02 06:52:20 +0000
committerEric Wong <e@yhbt.net>2020-02-02 17:29:57 +0000
commit4bb77753fbbc30ab396a1b01d70cf65b629b6276 (patch)
tree4a27d0deef4e32a8a88c57960027344e321a3b28 /t
parent2fef8c4500fc00a15b36552c2a22da1582af033d (diff)
downloadpublic-inbox-4bb77753fbbc30ab396a1b01d70cf65b629b6276.tar.gz
The (currently undocumented) "--no-index" flag did not trigger
the V2Writable->done call necessary to make the import
successful.

Fixes: eea47b676127bcdb ("convert: preserve highwater mark from v1 msgmap")
Diffstat (limited to 't')
-rw-r--r--t/convert-compact.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/convert-compact.t b/t/convert-compact.t
index fc46083b..f56d7817 100644
--- a/t/convert-compact.t
+++ b/t/convert-compact.t
@@ -76,6 +76,9 @@ my $hwm = do {
 };
 ok(defined($hwm) && $hwm > 0, "highwater mark set #$hwm");
 
+$cmd = [ '-convert', '--no-index', $ibx->{inboxdir}, "$tmpdir/no-index" ];
+ok(run_script($cmd, undef, $rdr), 'convert --no-index works');
+
 $cmd = [ '-convert', $ibx->{inboxdir}, "$tmpdir/v2" ];
 ok(run_script($cmd, undef, $rdr), 'convert works');
 @xdir = glob("$tmpdir/v2/xap*/*");