[DRE-commits] [gem2deb] 01/04: Fix regression when handling test failures

Antonio Terceiro terceiro at moszumanska.debian.org
Wed Dec 4 00:55:31 UTC 2013


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

terceiro pushed a commit to branch master
in repository gem2deb.

commit f8cc9459e623b2fb57363a53f751d9b0c73475ff
Author: Marc Deslauriers <marc.deslauriers at ubuntu.com>
Date:   Tue Dec 3 21:25:07 2013 -0300

    Fix regression when handling test failures
    
    Signed-off-by: Antonio Terceiro <terceiro at debian.org>
---
 lib/gem2deb/dh_ruby.rb | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lib/gem2deb/dh_ruby.rb b/lib/gem2deb/dh_ruby.rb
index 8dc2aaa..d2db21b 100644
--- a/lib/gem2deb/dh_ruby.rb
+++ b/lib/gem2deb/dh_ruby.rb
@@ -135,9 +135,9 @@ module Gem2Deb
         return
       end
 
-      run(SUPPORTED_RUBY_VERSIONS[rubyver], '-I' + LIBDIR, TEST_RUNNER)
-
-      if $?.exitstatus != 0
+      begin
+        run(SUPPORTED_RUBY_VERSIONS[rubyver], '-I' + LIBDIR, TEST_RUNNER)
+      rescue Gem2Deb::CommandFailed
         handle_test_failure(rubyver)
       end
     end

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



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