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/nntpd-validate.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'xt/nntpd-validate.t') 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); -- cgit v1.2.3-24-ge0c7