Method: ChkBuild::Target#init_default_diff_preprocess_hooks

Defined in:
lib/chkbuild/target.rb

#init_default_diff_preprocess_hooksObject



95
96
97
98
99
100
101
102
103
104
105
106
# File 'lib/chkbuild/target.rb', line 95

def init_default_diff_preprocess_hooks
  add_diff_preprocess_gsub(/ # \d{4,}-\d\d-\d\dT\d\d:\d\d:\d\d[-+]\d\d:\d\d$/) {|match|
    ' # <time>'
  }
  add_diff_preprocess_gsub(CHANGE_LINE_PAT) {|match| '' }
  add_diff_preprocess_gsub(/timeout: the process group \d+ is alive/) {|match|
    "timeout: the process group <pgid> is alive"
  }
  add_diff_preprocess_gsub(/some descendant process in process group \d+ remain/) {|match|
    "some descendant process in process group <pgid> remain"
  }
end