libtest-requiresinternet-perl test suite requires Internet

Bug #1427982 reported by Steve Langasek
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
libtest-requiresinternet-perl (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

The libtest-requiresinternet-perl package uses the generic pkg-perl-autopkgtest harness, which tests that the module can be imported with no errors and no output.

The Test::RequiresInternet perl module, on import, immediately checks that it can reach www.google.com, and if it can't, it outputs an error.

This is not an appropriate thing for a package to be doing in its autopkgtest test suite. The test runners are not guaranteed to have an (unfirewalled) Internet connection, and the package test should not depend on the Internet being reachable.

Revision history for this message
Steve Langasek (vorlon) wrote :

The module also says that setting NO_NETWORK_TESTING in the environment should skip the test. But this still doesn't help, because in that case the test *also* outputs a message saying the test has been skipped.

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package libtest-requiresinternet-perl - 0.05-2

---------------
libtest-requiresinternet-perl (0.05-2) unstable; urgency=medium

  [ Salvatore Bonaccorso ]
  * debian/control: Use HTTPS transport protocol for Vcs-Git URI

  [ gregor herrmann ]
  * debian/copyright: change Copyright-Format 1.0 URL to HTTPS.
  * debian/upstream/metadata: use HTTPS for GitHub URLs.
  * Disable network tests during builds and autopkgtests.
    While they fail gracefully, network access can be a policy violation
    and/or cause problems.
    Thanks to Steve Langasek for the bug report. (LP: #1427982)
  * Update years of packaging copyright.
  * Declare compliance with Debian Policy 4.0.0.

 -- gregor herrmann <email address hidden> Thu, 03 Aug 2017 16:17:47 -0400

Changed in libtest-requiresinternet-perl (Ubuntu):
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.