[DRE-commits] [ruby-pygments.rb] 05/05: No relative path in the require statement of tests to allow autopkgtest
Cédric Boutillier
boutil at moszumanska.debian.org
Fri Jul 8 12:48:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch master
in repository ruby-pygments.rb.
commit d065ed407e15cdd4b2632dc428358cf34afaf498
Author: Cédric Boutillier <boutil at debian.org>
Date: Fri Jul 8 14:43:00 2016 +0200
No relative path in the require statement of tests to allow autopkgtest
---
debian/changelog | 1 +
...010-no-relative-path-for-require-in-tests.patch | 24 ++++++++++++++++++++++
debian/patches/series | 1 +
3 files changed, 26 insertions(+)
diff --git a/debian/changelog b/debian/changelog
index b3e8a67..3555b96 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -9,6 +9,7 @@ ruby-pygments.rb (0.6.3-2) unstable; urgency=medium
* Set Testsuite to autopkgtest-pkg-ruby
* Amend 0001-Remove-gemspec-git-ls-files.patch to not use relative path to
load the version number from gemspecs
+ * No relative path in the require statement of tests to allow autopkgtest
-- Cédric Boutillier <boutil at debian.org> Fri, 08 Jul 2016 13:49:11 +0200
diff --git a/debian/patches/0010-no-relative-path-for-require-in-tests.patch b/debian/patches/0010-no-relative-path-for-require-in-tests.patch
new file mode 100644
index 0000000..da8645e
--- /dev/null
+++ b/debian/patches/0010-no-relative-path-for-require-in-tests.patch
@@ -0,0 +1,24 @@
+From: =?utf-8?q?C=C3=A9dric_Boutillier?= <boutil at debian.org>
+Date: Fri, 8 Jul 2016 14:40:06 +0200
+Subject: no relative path for require in tests
+
+Let the interpreter find the library with loadpath in tests
+So that the tests can be run with the installed package (autpkgtest)
+Forwarded: no
+---
+ test/test_pygments.rb | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/test/test_pygments.rb b/test/test_pygments.rb
+index 14f6d3b..f961cd8 100644
+--- a/test/test_pygments.rb
++++ b/test/test_pygments.rb
+@@ -1,7 +1,7 @@
+ #coding: utf-8
+
+ require 'test/unit'
+-require File.join(File.dirname(__FILE__), '..', '/lib/pygments.rb')
++require 'pygments'
+ ENV['mentos-test'] = "yes"
+
+ P = Pygments
diff --git a/debian/patches/series b/debian/patches/series
index 38c5930..1e05c73 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -7,3 +7,4 @@
0007-Update-test-result.patch
0008-fix_test_pygments.patch
0009-adapt-to-new-pygments.patch
+0010-no-relative-path-for-require-in-tests.patch
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-pygments.rb.git
More information about the Pkg-ruby-extras-commits
mailing list