about summary refs log tree commit homepage
path: root/lib/PublicInbox/TestCommon.pm
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2020-12-16 05:45:52 +0000
committerEric Wong <e@80x24.org>2020-12-19 09:32:08 +0000
commit671d4e711d4a20dfb987b273d08e73e5add37f1d (patch)
tree7579b1477f1ce7f0734e555b0f1dcd364b789061 /lib/PublicInbox/TestCommon.pm
parent04115815acef798c4330a76df9c1cb3d3542c9f9 (diff)
downloadpublic-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.pm2
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 {