Skip to content

Commit

Permalink
Update test.rb
Browse files Browse the repository at this point in the history
Also fix earlier setup and teardown to support abort_on_exception
  • Loading branch information
ryanmelt authored Nov 22, 2019
1 parent 5f2b081 commit 2bd9275
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/cosmos/tools/test_runner/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def run
if result
results << result
yield result if block_given?
raise StopScript if result.stopped
raise StopScript if (results[-1].exceptions and @@abort_on_exception) or results[-1].stopped
end

# Run each test case
Expand All @@ -141,7 +141,7 @@ def run
if result
results << result
yield result if block_given?
raise StopScript if result.stopped
raise StopScript if (results[-1].exceptions and @@abort_on_exception) or results[-1].stopped
end

results
Expand Down

0 comments on commit 2bd9275

Please sign in to comment.