From 3c313f9034aac96182e2efdc2f92c40803626f32 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Wed, 18 Dec 2019 03:36:44 +0000 Subject: tests: move t/common.perl to PublicInbox::TestCommon We want to be able to use run_script with *.t files, so t/common.perl putting subs into the top-level "main" namespace won't work. Instead, make it a module which uses Exporter like other libraries. --- xt/perf-nntpd.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xt/perf-nntpd.t') diff --git a/xt/perf-nntpd.t b/xt/perf-nntpd.t index 5a176e08..df5ecb41 100644 --- a/xt/perf-nntpd.t +++ b/xt/perf-nntpd.t @@ -10,7 +10,7 @@ my $inboxdir = $ENV{GIANT_INBOX_DIR} // $ENV{GIANT_PI_DIR}; plan skip_all => "GIANT_INBOX_DIR not defined for $0" unless defined($inboxdir); eval { require PublicInbox::Search }; my ($host_port, $group, %opts, $s, $td, $tmp_obj); -require './t/common.perl'; +use PublicInbox::TestCommon; if (($ENV{NNTP_TEST_URL} || '') =~ m!\Anntp://([^/]+)/([^/]+)\z!) { ($host_port, $group) = ($1, $2); -- cgit v1.2.3-24-ge0c7