Skip to content

Commit

Permalink
Also fail on nil results
Browse files Browse the repository at this point in the history
  • Loading branch information
epall committed Mar 31, 2011
1 parent 82a2320 commit 537aceb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sauce/jasmine/runner.rb
Expand Up @@ -50,7 +50,7 @@ def run_tests
results.each do |browser_string, result|
if result.respond_to? :[]
actual_result, job_id = result
success = actual_result.values.all? {|suite_result| suite_result['result'] == "passed"}
success = actual_result && actual_result.values.all? {|suite_result| suite_result['result'] == "passed"}
if !success
puts "[FAILURE] Failure on #{browser_string}. See https://saucelabs.com/jobs/#{job_id} for details."
at_exit { exit!(1) }
Expand Down

0 comments on commit 537aceb

Please sign in to comment.