- filenames = Set.new
- filenames_check = Hash.new { |h, k| h[k] = false }
- error_lines = ErrorMessages.new(previous_result_file).obtain_error_messages_by_error_id(error_id, true)
- error_lines.each do |error_line|
- filenames << $1 if error_line =~ /(.*)(:.*){2}: (error|warning):/
^ ^ .* => [^:]+
Thanks, Luan Shengde
- end
- File.open(later_result_file).each_line do |line|
- filenames.each do |filename|
filenames_check[filename]
filenames_check[filename] = true if line.include?(filename)
- end
- end
- return filenames_check
+end
def get_compare_result(previous_job_id, later_job_id) es = ESQuery.new
-- 2.23.0