Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Tests are not fatal.

  • Loading branch information...
commit d11a25bb9b855d8062a20f921ae5c66953a51212 1 parent f7b2605
@BanzaiMan BanzaiMan authored
Showing with 12 additions and 3 deletions.
  1. +12 −3 lib/rhc/wizard.rb
View
15 lib/rhc/wizard.rb
@@ -377,14 +377,23 @@ def show_app_info_stage
# and this makes the spec results inconsistent between 1.8 and 1.9.
# Thus, we force an order with #sort to ensure spec passage on both.
def setup_test_stage
- tests_passed = false
say "Checking common problems "
tests = private_methods.select {|m| m.to_s.start_with? 'test_'}
- tests.sort.all? do |test|
- send(test)
+ tests.sort.each do |test|
+ begin
+ send(test)
+ rescue => e
+ # :nocov:
+ warn "Encountered #{e.class} in #{test.to_s}: #{e.message}"
+ warn e.backtrace if debug?
+ warn "Continuing..."
+ # :nocov:
+ end
end.tap do |pass|
success(' done') if pass
end
+
+ true
end
# cached list of applications needed for test stage
Please sign in to comment.
Something went wrong with that request. Please try again.