about summary refs log tree commit homepage
path: root/xt/nntpd-validate.t
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2019-12-18 03:36:44 +0000
committerEric Wong <e@80x24.org>2019-12-19 04:07:45 +0000
commit3c313f9034aac96182e2efdc2f92c40803626f32 (patch)
tree5e105f4b698da5695c22edea1a6e2033e0ce78e4 /xt/nntpd-validate.t
parent684d26cecc0891261783be179909b0e434692b25 (diff)
downloadpublic-inbox-3c313f9034aac96182e2efdc2f92c40803626f32.tar.gz
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.
Diffstat (limited to 'xt/nntpd-validate.t')
-rw-r--r--xt/nntpd-validate.t2
1 files changed, 1 insertions, 1 deletions
diff --git a/xt/nntpd-validate.t b/xt/nntpd-validate.t
index 39108639..c82d46e2 100644
--- a/xt/nntpd-validate.t
+++ b/xt/nntpd-validate.t
@@ -29,7 +29,7 @@ my $key = 'certs/server-key.pem';
 if ($test_tls && !-r $key || !-r $cert) {
         plan skip_all => "certs/ missing for $0, run $^X ./certs/create-certs.perl";
 }
-require './t/common.perl';
+use PublicInbox::TestCommon;
 my ($tmpdir, $ftd) = tmpdir();
 $File::Temp::KEEP_ALL = !!$ENV{TEST_KEEP_TMP};
 my (%OPT, $td, $host_port, $group);