Skip Menu |

This queue is for tickets about the Test-RequiresInternet CPAN distribution.

Report information
The Basics
Id: 96892
Status: resolved
Priority: 0/
Queue: Test-RequiresInternet

People
Owner: Nobody in particular
Requestors: gregoa [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: t/00_load.t fails without network access
Very nice module, thanks! Ironically, t/00_load.t fails if there is no network. 1) in a chroot with everything except localhost firewalled off $ prove --blib --verbose t/*.t # No tests run! t/00_load.t ............ 1..1 1..0 # Skipped: no host: www.google.com Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/1 subtests t/01_getserv.t ......... skipped: no host: www.google.com t/02_multiple_hosts.t .. skipped: no host: www.google.com t/03_badhost.t ......... skipped: no host: foobar t/04_env.t ............. skipped: NO_NETWORK_TESTING # Must supply server and a port pairs. You supplied www.google.com t/05_badarg.t .......... ok 1 1..1 ok t/06_badport.t ......... skipped: Could not find a port number for foobar Test Summary Report ------------------- t/00_load.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: More than one plan found in TAP output Bad plan. You planned 1 tests but ran 0. Files=7, Tests=1, 0 wallclock secs ( 0.03 usr 0.00 sys + 0.12 cusr 0.02 csys = 0.17 CPU) Result: FAIL 2) without a firewall but with NO_NETWORK_TESTING set $ NO_NETWORK_TESTING=1 prove --blib --verbose t/*.t t/00_load.t ............ 1..1 # No tests run! 1..0 # Skipped: NO_NETWORK_TESTING Dubious, test returned 255 (wstat 65280, 0xff00) Failed 1/1 subtests t/01_getserv.t ......... 1..0 # Skipped: NO_NETWORK_TESTING skipped: NO_NETWORK_TESTING t/02_multiple_hosts.t .. 1..0 # Skipped: NO_NETWORK_TESTING skipped: NO_NETWORK_TESTING t/03_badhost.t ......... 1..0 # Skipped: NO_NETWORK_TESTING skipped: NO_NETWORK_TESTING t/04_env.t ............. 1..0 # Skipped: NO_NETWORK_TESTING skipped: NO_NETWORK_TESTING t/05_badarg.t .......... 1..0 # Skipped: NO_NETWORK_TESTING skipped: NO_NETWORK_TESTING t/06_badport.t ......... 1..0 # Skipped: NO_NETWORK_TESTING skipped: NO_NETWORK_TESTING Test Summary Report ------------------- t/00_load.t (Wstat: 65280 Tests: 0 Failed: 0) Non-zero exit status: 255 Parse errors: More than one plan found in TAP output Bad plan. You planned 1 tests but ran 0. Files=7, Tests=0, 0 wallclock secs ( 0.04 usr 0.00 sys + 0.11 cusr 0.02 csys = 0.17 CPU) Result: FAIL Cheers, gregor, Debian Perl Group
On Wed Jul 02 12:56:05 2014, GREGOA wrote: Show quoted text
> Very nice module, thanks!
Glad you like it. Show quoted text
> Ironically, t/00_load.t fails if there is no network.
Yeah, CPANTs has been telling me this for a few days but I haven't gotten around to fixing it yet. I should have a new version with a fix out soon.
Subject: Re: [rt.cpan.org #96892] t/00_load.t fails without network access
Date: Wed, 2 Jul 2014 19:34:34 +0200
To: Mark Allen via RT <bug-Test-RequiresInternet [...] rt.cpan.org>
From: gregor herrmann <gregoa [...] debian.org>
On Wed, 02 Jul 2014 13:09:57 -0400, Mark Allen via RT wrote: Show quoted text
> > Very nice module, thanks!
> Glad you like it.
If it's adopted across the CPAN it would be a help for Debian, where we can't assume internet access when building packages. So at the moment we have to avoid running tests that need internet access by patching them or doing other ugly hacks. With your module and especially the environment variable that would become simple and clean. Show quoted text
> > Ironically, t/00_load.t fails if there is no network.
> Yeah, CPANTs has been telling me this for a few days but I haven't > gotten around to fixing it yet. I should have a new version with a > fix out soon.
Great, thank you. Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: George Harrison: I Remember Jeep
Download signature.asc
application/pgp-signature 928b

Message body not shown because it is not plain text.

On Wed Jul 02 12:56:05 2014, GREGOA wrote: Show quoted text
> Ironically, t/00_load.t fails if there is no network.
Just released 0.02 which fixes this problem.
Subject: Re: [rt.cpan.org #96892] t/00_load.t fails without network access
Date: Thu, 3 Jul 2014 20:20:14 +0200
To: Mark Allen via RT <bug-Test-RequiresInternet [...] rt.cpan.org>
From: gregor herrmann <gregoa [...] debian.org>
On Wed, 02 Jul 2014 21:59:11 -0400, Mark Allen via RT wrote: Show quoted text
> On Wed Jul 02 12:56:05 2014, GREGOA wrote:
> > Ironically, t/00_load.t fails if there is no network.
> Just released 0.02 which fixes this problem.
Great, thanks! And uploaded to Debian :) Cheers, gregor -- .''`. Homepage: http://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06 : :' : Debian GNU/Linux user, admin, and developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe `- NP: Weather Report: Mysterious Traveller
Download signature.asc
application/pgp-signature 928b

Message body not shown because it is not plain text.