File: no_cpan_shell.patch

package info (click to toggle)
libtest-prereq-perl 1.037-1
  • links: PTS, VCS
  • area: main
  • in suites: squeeze, wheezy
  • size: 148 kB
  • ctags: 20
  • sloc: perl: 265; makefile: 20
file content (19 lines) | stat: -rw-r--r-- 436 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
Author: Rene Mayorga <rmayorga@debian.org>
Description: skip t/get_from_prereqs.t, since this test might require
 CPAN shell and network access.
--- a/t/get_from_prereqs.t
+++ b/t/get_from_prereqs.t
@@ -2,7 +2,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(.);