diff options
author | Eric Wong <e@80x24.org> | 2021-02-06 12:18:37 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2021-02-07 03:34:32 +0000 |
commit | 7f43cdaf0e46c1d99bf5834f414dc8f36407e8cc (patch) | |
tree | 0233545300e43cf50b0ea9790a3637a26317b64e /lib/PublicInbox/TestCommon.pm | |
parent | 562a9b3f8846dbc1623ac9012910219de9a68c75 (diff) | |
download | public-inbox-7f43cdaf0e46c1d99bf5834f414dc8f36407e8cc.tar.gz |
This makes it easier for hackers to find daemon-specific tests and forces us to always test both daemon and oneshot mode.
Diffstat (limited to 'lib/PublicInbox/TestCommon.pm')
-rw-r--r-- | lib/PublicInbox/TestCommon.pm | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/PublicInbox/TestCommon.pm b/lib/PublicInbox/TestCommon.pm index bb2cd7e6..c861dc5d 100644 --- a/lib/PublicInbox/TestCommon.pm +++ b/lib/PublicInbox/TestCommon.pm @@ -456,13 +456,15 @@ SKIP: { require PublicInbox::Spawn; state $lei_daemon = PublicInbox::Spawn->can('send_cmd4') || eval { require Socket::MsgHdr; 1 }; + # XXX fix and move this inside daemon-only before 1.7 release + skip <<'EOM', 1 unless $lei_daemon; +Socket::MsgHdr missing or Inline::C is unconfigured/missing +EOM $lei_opt = { 1 => \$lei_out, 2 => \$lei_err }; my $daemon_pid; my ($tmpdir, $for_destroy) = tmpdir(); SKIP: { - skip <<'EOM', 1 unless $lei_daemon; -Socket::MsgHdr missing or Inline::C is unconfigured/missing -EOM + skip 'TEST_LEI_ONESHOT set', 1 if $ENV{TEST_LEI_ONESHOT}; my $home = "$tmpdir/lei-daemon"; mkdir($home, 0700) or BAIL_OUT "mkdir: $!"; local $ENV{HOME} = $home; |