diff options
author | Eric Wong <e@80x24.org> | 2020-12-16 05:45:52 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2020-12-19 09:32:08 +0000 |
commit | 671d4e711d4a20dfb987b273d08e73e5add37f1d (patch) | |
tree | 7579b1477f1ce7f0734e555b0f1dcd364b789061 /lib/PublicInbox/TestCommon.pm | |
parent | 04115815acef798c4330a76df9c1cb3d3542c9f9 (diff) | |
download | public-inbox-671d4e711d4a20dfb987b273d08e73e5add37f1d.tar.gz |
We can use the same "local $ENV{FOO}" hack we do with t/nntpd-v2.t to test the oneshot code path without imposing an extra script in the users' $PATH.
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r-- | lib/PublicInbox/TestCommon.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index 2116575b..c236c589 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -168,7 +168,7 @@ sub run_script_exit { die RUN_SCRIPT_EXIT; } -my %cached_scripts; +our %cached_scripts; sub key2sub ($) { my ($key) = @_; $cached_scripts{$key} //= do { |