summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans de Graaff <graaff@gentoo.org>2012-07-04 06:25:53 +0000
committerHans de Graaff <graaff@gentoo.org>2012-07-04 06:25:53 +0000
commit1b0100f9f01b4d5389a4777235cbbd548a80eec4 (patch)
tree1bb894431f8d7f75d2310c77a3c15ddac890df4d /dev-ruby
parentmarked x86 per bug 422473 (diff)
downloadgentoo-2-1b0100f9f01b4d5389a4777235cbbd548a80eec4.tar.gz
gentoo-2-1b0100f9f01b4d5389a4777235cbbd548a80eec4.tar.bz2
gentoo-2-1b0100f9f01b4d5389a4777235cbbd548a80eec4.zip
Avoid a test failure due to hash ordering differences, fixing bug 424667.
(Portage version: 2.1.10.65/cvs/Linux x86_64)
Diffstat (limited to 'dev-ruby')
-rw-r--r--dev-ruby/awesome_print/ChangeLog5
-rw-r--r--dev-ruby/awesome_print/awesome_print-1.0.1.ebuild7
2 files changed, 10 insertions, 2 deletions
diff --git a/dev-ruby/awesome_print/ChangeLog b/dev-ruby/awesome_print/ChangeLog
index 2ee831961591..50aa9363ef94 100644
--- a/dev-ruby/awesome_print/ChangeLog
+++ b/dev-ruby/awesome_print/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for dev-ruby/awesome_print
# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/awesome_print/ChangeLog,v 1.9 2012/03/08 01:18:00 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/awesome_print/ChangeLog,v 1.10 2012/07/04 06:25:53 graaff Exp $
+
+ 04 Jul 2012; Hans de Graaff <graaff@gentoo.org> awesome_print-1.0.1.ebuild:
+ Avoid a test failure due to hash ordering differences, fixing bug 424667.
08 Mar 2012; Naohiro Aota <naota@gentoo.org> awesome_print-1.0.1.ebuild:
Add ~x86-fbsd.
diff --git a/dev-ruby/awesome_print/awesome_print-1.0.1.ebuild b/dev-ruby/awesome_print/awesome_print-1.0.1.ebuild
index adcdbfe07399..b01b049405fc 100644
--- a/dev-ruby/awesome_print/awesome_print-1.0.1.ebuild
+++ b/dev-ruby/awesome_print/awesome_print-1.0.1.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/dev-ruby/awesome_print/awesome_print-1.0.1.ebuild,v 1.2 2012/03/08 01:18:00 naota Exp $
+# $Header: /var/cvsroot/gentoo-x86/dev-ruby/awesome_print/awesome_print-1.0.1.ebuild,v 1.3 2012/07/04 06:25:53 graaff Exp $
EAPI=2
USE_RUBY="ruby18 ruby19 ree18 jruby"
@@ -22,6 +22,11 @@ IUSE=""
ruby_add_bdepend "test? ( >=dev-ruby/rspec-2.5.0:2 )"
+all_ruby_prepare() {
+ # Avoid intermittent hash-ordering test failure.
+ sed -i -e '/handle array grep when pattern contains/,/end/ s:^:#:' spec/formats_spec.rb || die
+}
+
each_ruby_test() {
${RUBY} -S rspec spec || die
}