]> Sergey Matveev's repositories - public-inbox.git/commitdiff
t/git.t: reorder IPC::Run check
authorEric Wong <e@80x24.org>
Sat, 29 Dec 2018 05:51:14 +0000 (05:51 +0000)
committerEric Wong <e@80x24.org>
Sat, 29 Dec 2018 07:03:59 +0000 (07:03 +0000)
We can't skip tests after "use_ok"

t/git.t

diff --git a/t/git.t b/t/git.t
index 5069ae2c42c68202aea2a0120dbfbd908e86a9a3..6538b6ca2644d3875f9fc0f36fe326fc55675f50 100644 (file)
--- a/t/git.t
+++ b/t/git.t
@@ -8,8 +8,8 @@ my $dir = tempdir('pi-git-XXXXXX', TMPDIR => 1, CLEANUP => 1);
 use Cwd qw/getcwd/;
 use PublicInbox::Spawn qw(popen_rd);
 
-use_ok 'PublicInbox::Git';
 eval { require IPC::Run } or plan skip_all => 'IPC::Run missing';
+use_ok 'PublicInbox::Git';
 
 {
        is(system(qw(git init -q --bare), $dir), 0, 'created git directory');