Permalink
Browse files

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

  • Loading branch information...
1 parent fac9f3f commit 33a1cd55f394fe36003650de0a9bcf1e87af40e5 @lnussbaum lnussbaum committed Mar 5, 2011
Showing with 4 additions and 0 deletions.
  1. +1 −0 debian/changelog
  2. +3 −0 lib/gem2deb/dh_ruby.rb
View
@@ -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
@@ -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)

0 comments on commit 33a1cd5

Please sign in to comment.