[DRE-commits] [ruby-rspec] 14/25: run all the tests and fail only at the end if something went wrong in the middle
Cédric Boutillier
boutil at moszumanska.debian.org
Sat Mar 28 20:34:12 UTC 2015
This is an automated email from the git hooks/post-receive script.
boutil pushed a commit to branch no_submodules
in repository ruby-rspec.
commit 0961e3722126325b89d66361af98e3053f4f3f08
Author: Cédric Boutillier <boutil at debian.org>
Date: Tue Mar 24 23:51:15 2015 +0100
run all the tests and fail only at the end if something went wrong in the middle
---
debian/ruby-tests.rb | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/debian/ruby-tests.rb b/debian/ruby-tests.rb
index 299e96f..09dd3ef 100644
--- a/debian/ruby-tests.rb
+++ b/debian/ruby-tests.rb
@@ -11,6 +11,8 @@ EXC_TESTS = [
'spec/rspec/core/formatters/html_formatter_spec.rb'
]
+success=true
+
LIBS.each do |lib|
fork do
Dir.chdir(lib) do
@@ -19,5 +21,8 @@ LIBS.each do |lib|
end
end
Process.wait
- exit($?.exitstatus) if $?.exitstatus != 0
+ #exit($?.exitstatus) if $?.exitstatus != 0
+ success &= ($?.exitstatus == 0)
end
+
+exit(1) unless success
--
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