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

gregoa pushed a commit to branch master
in repository perlbrew.

commit 5903f1bd726ecc203548da69a27e6f3c0852fee2
Author: gregor herrmann <gre...@debian.org>
Date:   Sun May 10 17:30:33 2015 +0200

    Add patch to use installed script in tests for autopktest.
---
 debian/patches/autopkgtest-path.patch | 32 ++++++++++++++++++++++++++++++++
 debian/patches/series                 |  1 +
 2 files changed, 33 insertions(+)

diff --git a/debian/patches/autopkgtest-path.patch 
b/debian/patches/autopkgtest-path.patch
new file mode 100644
index 0000000..21bb686
--- /dev/null
+++ b/debian/patches/autopkgtest-path.patch
@@ -0,0 +1,32 @@
+Description: use installed script when run under autopkgtest
+Origin: vendor
+Forwarded: not-needed
+Author: gregor herrmann <gre...@debian.org>
+Last-Update: 2015-05-10
+
+diff --git a/t/09.exit_status.t b/t/09.exit_status.t
+index baf2646..bbcbaee 100644
+--- a/t/09.exit_status.t
++++ b/t/09.exit_status.t
+@@ -11,7 +11,7 @@ use Test::More;
+ use Test::Exception;
+ use Path::Class;
+ 
+-my $bin_perlbrew = 
file(__FILE__)->dir->parent->subdir("bin")->file("perlbrew");
++my $bin_perlbrew = $ENV{ADTTMP} ? '/usr/bin/perlbrew' : 
file(__FILE__)->dir->parent->subdir("bin")->file("perlbrew");
+ 
+ throws_ok(
+     sub {
+diff --git a/t/command-help.t b/t/command-help.t
+index 3600327..de91da4 100644
+--- a/t/command-help.t
++++ b/t/command-help.t
+@@ -8,7 +8,7 @@ require "test_helpers.pl";
+ 
+ use Test::Spec;
+ 
+-my $bin_perlbrew = 
file(__FILE__)->dir->parent->subdir("bin")->file("perlbrew");
++my $bin_perlbrew = $ENV{ADTTMP} ? '/usr/bin/perlbrew' : 
file(__FILE__)->dir->parent->subdir("bin")->file("perlbrew");
+ my $perl = $^X;
+ 
+ #
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..7fbed8e
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+autopkgtest-path.patch

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

_______________________________________________
Pkg-perl-cvs-commits mailing list
Pkg-perl-cvs-commits@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-perl-cvs-commits

Reply via email to