[pkg-perl-tools] 03/03: t/github.t: fix "Use of uninitialized value $ENV{"DPT_GITHUB_OAUTH"}"

gregor herrmann gregoa at debian.org
Sat May 28 13:36:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

gregoa pushed a commit to branch master
in repository pkg-perl-tools.

commit 85cc9651cb9e17d6e6094cafe00c0f857daa4d24
Author: gregor herrmann <gregoa at debian.org>
Date:   Sat May 28 15:35:38 2016 +0200

    t/github.t: fix "Use of uninitialized value $ENV{"DPT_GITHUB_OAUTH"}"
    
    Gbp-Dch: Ignore
---
 t/github.t | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/t/github.t b/t/github.t
index 6f49518..1cd55f3 100644
--- a/t/github.t
+++ b/t/github.t
@@ -8,7 +8,8 @@ use Test::More;
 BEGIN {
     plan skip_all
         => "GitHub tests require DPT_GITHUB_OAUTH token and Net::GitHub"
-        unless $ENV{DPT_GITHUB_OAUTH} =~ /^\w+$/
+        unless $ENV{DPT_GITHUB_OAUTH}
+        and $ENV{DPT_GITHUB_OAUTH} =~ /^\w+$/
         and eval "use Net::GitHub; 1";
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/pkg-perl-tools.git



More information about the Pkg-perl-cvs-commits mailing list