[DRE-commits] [ruby-rspec] 19/19: fixup test runner

Jérémy Bobbio lunar at alioth.debian.org
Sun Oct 20 17:01:32 UTC 2013


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

lunar pushed a commit to branch pu/multideb
in repository ruby-rspec.

commit 8ea7d36401baf9a60e2460658999628dadc6a3de
Author: Jérémy Bobbio <lunar at debian.org>
Date:   Sun Oct 20 17:28:15 2013 +0200

    fixup test runner
---
 debian/ruby-tests.rb |   10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 567b237..299e96f 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -1,4 +1,3 @@
-require "rspec/core"
 require "yaml"
 
 # We are going to chdir in the so we need absolute paths for the libs
@@ -13,7 +12,12 @@ EXC_TESTS = [
 ]
 
 LIBS.each do |lib|
-  Dir.chdir(lib) do
-    RSpec::Core::Runner.run(Dir["spec/rspec/**/*_spec.rb"] - EXC_TESTS, $stderr, $stdout) || fail
+  fork do
+    Dir.chdir(lib) do
+      require "rspec/core"
+      exit(RSpec::Core::Runner.run(Dir["spec/rspec/**/*_spec.rb"] - EXC_TESTS, $stderr, $stdout))
+    end
   end
+  Process.wait
+  exit($?.exitstatus) if $?.exitstatus != 0
 end

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



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