[DRE-commits] [rake] 06/15: debian/ruby-tests.rb: fix test order randomization seed

Antonio Terceiro terceiro at moszumanska.debian.org
Fri Jun 30 21:12:48 UTC 2017


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

terceiro pushed a commit to branch master
in repository rake.

commit 213d8513e32320b84584066069d0d78bc47f713f
Author: Antonio Terceiro <terceiro at debian.org>
Date:   Thu Jun 29 09:22:17 2017 -0300

    debian/ruby-tests.rb: fix test order randomization seed
    
    Tests fail randomly, so with this seed they should most probably pass.
    
    See https://github.com/ruby/rake/issues/212
---
 debian/changelog     | 6 +++++-
 debian/ruby-tests.rb | 2 +-
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 298692d..10dc5b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,7 +3,11 @@ rake (12.0.0-1) UNRELEASED; urgency=medium
   * debian/watch, debian/copyright: pull from ruby/rake on Github
   * New upstream release
   * Refresh patches
-  * debian/ruby-tests.rb: adapt to reorganization in upstream source
+  * debian/ruby-tests.rb:
+    - adapt to reorganization in upstream source
+    - force SEED used in randomizing test order, since the tests fail randomly
+      depending on the order they are executed. See
+      https://github.com/ruby/rake/issues/212
 
  -- Antonio Terceiro <terceiro at debian.org>  Tue, 27 Jun 2017 18:03:11 -0300
 
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 7671bd9..4cdb41a 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,3 +1,3 @@
 require 'rbconfig'
 ruby = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name'])
-exec("#{ruby} -rubygems ./exe/rake")
+exec("#{ruby} -rubygems ./exe/rake SEED=2118")

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



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