File: no_cpan_shell.patch

package info (click to toggle)
libtest-prereq-perl 1.038-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 176 kB
  • ctags: 22
  • sloc: perl: 313; makefile: 4
file content (23 lines) | stat: -rw-r--r-- 532 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
Description: skip t/get_from_prereqs.t, since this test might require
 CPAN shell and network access.
Forwarded: not-needed
Author: Rene Mayorga <rmayorga@debian.org>
Reviewed-by: gregor herrmann <gregoa@debian.org>
Last-Update: 2014-01-10

--- a/t/get_from_prereqs.t
+++ b/t/get_from_prereqs.t
@@ -1,7 +1,12 @@
 use strict;
 
 use Test::Prereq;
-use Test::More tests => 1;
+use Test::More;
+
+if ($ENV{CPANSHELL}) {
+    plan skip_all => "please un-set CPANSHELL var to enable this tests";
+}
+plan tests => 1;
 
 use lib qw(.);