MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / check_output

Function check_output

tools/ci/bsp_buildings.py:202–212  ·  view source on GitHub ↗

检查输出中是否包含指定字符串

(output, check_string)

Source from the content-addressed store, hash-verified

200 return res
201
202def check_output(output, check_string):
203 """检查输出中是否包含指定字符串"""
204 output_str = ''.join(output) if isinstance(output, list) else str(output)
205 flag = check_string in output_str
206 if flag == True:
207 print('Success: find string ' + check_string)
208 else:
209 print(output)
210 print(f"::error:: can not find string {check_string} output: {output_str}")
211
212 return flag
213if __name__ == "__main__":
214 """
215 build all bsp and attach config.

Callers 2

read_symbolsFunction · 0.85
build_bspFunction · 0.85

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected