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. --- t/psgi_multipart_not.t | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 't/psgi_multipart_not.t') diff --git a/t/psgi_multipart_not.t b/t/psgi_multipart_not.t index d3489f2d..9384d14a 100644 --- a/t/psgi_multipart_not.t +++ b/t/psgi_multipart_not.t @@ -6,7 +6,7 @@ use Test::More; use Email::MIME; use PublicInbox::Config; use PublicInbox::WWW; -require './t/common.perl'; +use PublicInbox::TestCommon; my @mods = qw(DBD::SQLite Search::Xapian HTTP::Request::Common Plack::Test URI::Escape Plack::Builder Plack::Test); foreach my $mod (@mods) { -- cgit v1.2.3-24-ge0c7