]> Sergey Matveev's repositories - public-inbox.git/commit - lib/PublicInbox/TestCommon.pm
test_common: handle '-C' (chdir) spawn option properly
authorEric Wong <e@80x24.org>
Fri, 16 Apr 2021 23:10:31 +0000 (16:10 -0700)
committerEric Wong <e@80x24.org>
Sat, 17 Apr 2021 02:24:47 +0000 (22:24 -0400)
commit315157c2e0c52e9e7b8078ba5c8b79e0b1a3802e
treeb490b3ba70a579fefc0bcdcac3621ae5e9f3bf4e
parent604fa817dcd5d430931e6cfb921bd62f4cddc345
test_common: handle '-C' (chdir) spawn option properly

We use it in t/lei-q-save.t, and were inadvertently writing
to the worktree.

v2: fix -C $DIR with TEST_RUN_MODE=0
lib/PublicInbox/TestCommon.pm