[DRE-commits] [ruby-pathname2] 02/03: fix pbuilder test fail

Michael Crusoe misterc-guest at moszumanska.debian.org
Fri Nov 27 22:41:29 UTC 2015


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

misterc-guest pushed a commit to branch master
in repository ruby-pathname2.

commit d2f5594fdfcfed111a1b032fe41e63c9143a81aa
Author: Michael R. Crusoe <crusoe at ucdavis.edu>
Date:   Sun Oct 18 09:35:52 2015 -0700

    fix pbuilder test fail
---
 debian/patches/fix-test | 18 ++++++++++++++++++
 debian/patches/series   |  1 +
 2 files changed, 19 insertions(+)

diff --git a/debian/patches/fix-test b/debian/patches/fix-test
new file mode 100644
index 0000000..2c28ab5
--- /dev/null
+++ b/debian/patches/fix-test
@@ -0,0 +1,18 @@
+Author: Michael R. Crusoe <crusoe at ucdavis.edu>
+Forwarded: https://github.com/djberg96/pathname2/issues/2
+Description: Skip fragile test that fails due to stdin being a pipe
+
+This occurs in chroot/pbuilder environments
+--- ruby-pathname2.orig/test/test_pathname.rb
++++ ruby-pathname2/test/test_pathname.rb
+@@ -86,8 +86,8 @@
+   def test_realpath_platform
+     case CONFIG['host_os']
+       when /linux/i
+-        path1 = '/dev/stdin'
+-        assert_true(['/dev/pts/0', '/dev/proc/self/fd/0'].include?(Pathname.new(path1).realpath))
++        #path1 = '/dev/stdin'
++        #assert_true(['/dev/pts/0', '/dev/proc/self/fd/0'].include?(Pathname.new(path1).realpath))
+       when /sunos|solaris/i
+         path1 = '/dev/null'
+         path2 = '/dev/stdin'
diff --git a/debian/patches/series b/debian/patches/series
new file mode 100644
index 0000000..d3dd385
--- /dev/null
+++ b/debian/patches/series
@@ -0,0 +1 @@
+fix-test

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-pathname2.git



More information about the Pkg-ruby-extras-commits mailing list