[DRE-commits] [SCM] ruby-bio.git branch, master, updated. debian/1.4.2-2-12-ga3d4b6c
Cédric Boutillier
cedric.boutillier at gmail.com
Tue Jun 5 04:25:41 UTC 2012
The following commit has been merged in the master branch:
commit 6dcb33cd2b8f6c62fed28731cf145c81a70460ec
Author: Cédric Boutillier <cedric.boutillier at gmail.com>
Date: Sun Jun 3 17:44:37 2012 +0200
Disable randomly failing tests using chi2.
diff --git a/debian/patches/disable_tests_using_chi2.patch b/debian/patches/disable_tests_using_chi2.patch
new file mode 100644
index 0000000..6cba4a4
--- /dev/null
+++ b/debian/patches/disable_tests_using_chi2.patch
@@ -0,0 +1,35 @@
+Description: deactivate tests in test/unit/bio/sequence using chi2
+ These tests using randomness fail from time to time (1% of failure). They need
+ to be disabled not to create false positive FTBFS.
+Author: Cédric Boutillier <cedric.boutillier at gmail.com>
+Origin: vendor
+Bug: https://github.com/bioruby/bioruby/issues/56
+Last-Update: 2012-06-03
+---
+This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
+--- a/test/unit/bio/sequence/test_common.rb
++++ b/test/unit/bio/sequence/test_common.rb
+@@ -287,14 +287,16 @@
+ end
+ private :randomize_equiprobability
+
+- def test_randomize_equiprobability
+- randomize_equiprobability { |seq| seq.randomize }
+- end
++ ## Debian patch: test deactivated because randomly failing
++ #def test_randomize_equiprobability
++ # randomize_equiprobability { |seq| seq.randomize }
++ #end
+
+- def test_randomize_with_hash_equiprobability
+- hash = { 'c' => 4, 'g' => 3, 't' => 2, 'a' => 1 }
+- randomize_equiprobability { |seq| seq.randomize(hash) }
+- end
++ ## Debian patch: test deactivated because randomly failing
++ #def test_randomize_with_hash_equiprobability
++ # hash = { 'c' => 4, 'g' => 3, 't' => 2, 'a' => 1 }
++ # randomize_equiprobability { |seq| seq.randomize(hash) }
++ #end
+
+ ## disabled because it takes too long time.
+ #def test_randomize_with_block_equiprobability
diff --git a/debian/patches/series b/debian/patches/series
index 9cde860..b30b9fd 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1,3 +1,4 @@
disable-test-soap.patch
fix_definition_CutSymbol_in_test_cut_symbol.patch
do_not_rely_on_keys_order_for_hashes.patch
+disable_tests_using_chi2.patch
--
ruby-bio.git
More information about the Pkg-ruby-extras-commits
mailing list