]> Sergey Matveev's repositories - public-inbox.git/blobdiff - t/purge.t
tests: move t/common.perl to PublicInbox::TestCommon
[public-inbox.git] / t / purge.t
index 12644d691f038b3034c97280fb45a3e557f2fc14..0262f79153db1c5ac97edce4b61562e787b0cc4f 100644 (file)
--- a/t/purge.t
+++ b/t/purge.t
@@ -3,7 +3,7 @@
 use strict;
 use warnings;
 use Test::More;
-require './t/common.perl';
+use PublicInbox::TestCommon;
 require_git(2.6);
 my @mods = qw(DBI DBD::SQLite);
 foreach my $mod (@mods) {
@@ -11,6 +11,7 @@ foreach my $mod (@mods) {
        plan skip_all => "missing $mod for t/purge.t" if $@;
 };
 use Cwd qw(abs_path); # we need this since we chdir below
+local $ENV{HOME} = abs_path('t');
 my $purge = abs_path('blib/script/public-inbox-purge');
 my ($tmpdir, $for_destroy) = tmpdir();
 use_ok 'PublicInbox::V2Writable';