lib/mutx/results/result.rb in mutx-0.1.17 vs lib/mutx/results/result.rb in mutx-0.1.18
- old
+ new
@@ -136,11 +136,19 @@
end
# Returns the string of custom params values
# @return [String] foo=bar john=doe
def custom_params_values
- "mutx_custom_params='#{validate_params(@custom_params).to_json}'".gsub(',', ', ') unless @custom_params.empty?
+ unless @custom_params.empty?
+ line = ""
+ validated = validate_params(@custom_params)
+ validated.each_pair do |param_name,value|
+ line += "#{param_name}=#{value} "
+ end
+ line
+ end
+ # "mutx_custom_params='#{validate_params(@custom_params).to_json}'".gsub(',', ', ') unless @custom_params.empty?
end
# Returns a hash with valid parameters. This is to prevent command line command with could cause problems
# @param [hash] custom params
@@ -220,11 +228,11 @@
def finished_by_timeout!
@timeout = "#{Mutx::Support::Configuration.execution_time_to_live}"
reset!("Timeout reached '#{@timeout}'")
- # save_report
- # save_report_summary_and_status!
+ save_report
+ save_report_summary_and_status!
Mutx::Support::Log.debug "[#{@id}] Finished by timeout (#{Mutx::Support::Configuration.execution_time_to_live} sec)" if Mutx::Support::Log
Mutx::Workers::EmailSender.perform_async(self.id)
true
end
\ No newline at end of file