[DRE-commits] [ruby-oj] 04/06: run every test in isolation, run also tests under test/isolated

Cédric Boutillier boutil at moszumanska.debian.org
Fri May 1 19:56:10 UTC 2015


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

boutil pushed a commit to branch master
in repository ruby-oj.

commit b265c70c61f9b66aceef2720c2580d5286209163
Author: Cédric Boutillier <boutil at debian.org>
Date:   Fri May 1 21:44:36 2015 +0200

    run every test in isolation, run also tests under test/isolated
---
 debian/ruby-tests.rb | 11 +++++++++--
 1 file changed, 9 insertions(+), 2 deletions(-)

diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 53b0a49..a6a851e 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,3 +1,10 @@
-
 ENV['TZ']="Europe/Paris"
-Dir.glob("./test/test*.rb").each { |f| require f }
+
+success=true
+Dir.glob("./test/{isolated,.}/test*.rb").each do |f|
+  puts "-------- running #{f} test ------- "
+  #system("TZ='Europe/Paris' #{ENV['RUBY_TEST_BIN']} -I#{ENV['RUBYLIB']} #{f}") or success=false
+  system("#{ENV['RUBY_TEST_BIN']} -I#{ENV['RUBYLIB']} #{f}") or success=false
+end
+
+exit(1) unless(success)

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



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