Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

When tests fail, and user says No, do not continue.

  • Loading branch information...
commit 33a1cd55f394fe36003650de0a9bcf1e87af40e5 1 parent fac9f3f
@lnussbaum lnussbaum authored
Showing with 4 additions and 0 deletions.
  1. +1 −0  debian/changelog
  2. +3 −0  lib/gem2deb/dh_ruby.rb
View
1  debian/changelog
@@ -5,6 +5,7 @@ gem2deb (0.1.1) experimental; urgency=low
* Add --package option to gem2deb and dh-make-ruby, to specify the
name of the package to generate
* Generate packages that depend on ruby1.8 | ruby-interpreter.
+ * When tests fail, and user says No, do not continue.
-- Lucas Nussbaum <lucas@lucas-nussbaum.net> Sat, 05 Mar 2011 20:16:09 +0100
View
3  lib/gem2deb/dh_ruby.rb
@@ -177,6 +177,9 @@ def handle_test_failure(test)
continue = true if c.chr.downcase == 'y'
continue = false if c.chr.downcase == 'n'
end while continue.nil?
+ if not continue
+ exit(1)
+ end
else
puts "ERROR: Test \"#{test}\" failed. Exiting."
exit(1)
Please sign in to comment.
Something went wrong with that request. Please try again.