MCPcopy Create free account
hub / github.com/Tencent/CodeAnalysis / compile_cmd_callback

Method compile_cmd_callback

client/tool/util/compile.py:126–134  ·  view source on GitHub ↗
(line)

Source from the content-addressed store, hash-verified

124 pattern = re.compile(stop_on_output_str)
125
126 def compile_cmd_callback(line):
127 self.print_log(line)
128 if self.build_log_end.full():
129 self.build_log_end.get()
130 self.build_log_end.put_nowait(line)
131 if pattern.search(line):
132 logger.info("terminate cmd on pattern %s" % stop_on_output_str)
133 spc.stop()
134 self.stop_on_output_flag = True
135
136 else:
137 self.print_log("subprocc normal mode: %s" % build_cmd)

Callers

nothing calls this directly

Calls 4

print_logMethod · 0.95
stopMethod · 0.80
getMethod · 0.45
infoMethod · 0.45

Tested by

no test coverage detected