diff options
author | Eric Wong <e@yhbt.net> | 2020-04-19 23:19:34 +0000 |
---|---|---|
committer | Eric Wong <e@yhbt.net> | 2020-04-20 20:18:16 +0000 |
commit | d55abcc42bde846d9047491125dd2b32645dafd8 (patch) | |
tree | a7dd9274b4790732aaa401757490919d3e8296b7 /t/search-thr-index.t | |
parent | b3a04ae18a42ed960c89cc81c209633da6976380 (diff) | |
download | public-inbox-d55abcc42bde846d9047491125dd2b32645dafd8.tar.gz |
Allowing ->init_bare to be used as a method saves some keystrokes, and we can save a little bit of time on systems with our vfork(2)-enabled spawn(). This also sets us up for future improvements where we can avoid spawning a process at all.
Diffstat (limited to 't/search-thr-index.t')
-rw-r--r-- | t/search-thr-index.t | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/t/search-thr-index.t b/t/search-thr-index.t index f073304a..6c564b19 100644 --- a/t/search-thr-index.t +++ b/t/search-thr-index.t @@ -11,10 +11,11 @@ require_mods(qw(DBD::SQLite Search::Xapian)); require PublicInbox::SearchIdx; require PublicInbox::Smsg; require PublicInbox::Inbox; +use PublicInbox::Import; my ($tmpdir, $for_destroy) = tmpdir(); my $git_dir = "$tmpdir/a.git"; -is(0, system(qw(git init -q --bare), $git_dir), "git init (main)"); +PublicInbox::Import::init_bare($git_dir); my $ibx = PublicInbox::Inbox->new({inboxdir => $git_dir}); my $rw = PublicInbox::SearchIdx->new($ibx, 1); ok($rw, "search indexer created"); |