lib/coderunner/run.rb in coderunner-1.0.13 vs lib/coderunner/run.rb in coderunner-1.0.14
- old
+ new
@@ -313,10 +313,10 @@
@running = false if [:Complete, :Failed].include? @status
raise CRFatal.new("status must be one of #{PERMITTED_STATI.inspect}") unless PERMITTED_STATI.include? @status
@max = {}
write_results
- @component_runs = []
+ @component_runs ||= []
generate_component_runs
save
commit_results if @runner.is_in_repo? and not @running
return self
end