未验证 提交 2b6bccc5 编写于 作者: R risemeup1 提交者: GitHub

Fix the problem of printing log (#47474)

上级 605b3f98
...@@ -90,10 +90,14 @@ def get_h_cu_file(file_path): ...@@ -90,10 +90,14 @@ def get_h_cu_file(file_path):
dir_path = file_path[1] dir_path = file_path[1]
filename = file_path[2] filename = file_path[2]
ut = filename.replace('^', '').replace('$', '').replace('.log', '') ut = filename.replace('^', '').replace('$', '').replace('.log', '')
os.system( ut_path = "%s/build/ut_map/%s" % (rootPath, ut)
"cat %s/%s | grep 'precise test map fileeee:'| uniq >> %s/build/ut_map/%s/related_%s.txt" if os.path.exists(ut_path):
% (dir_path, filename, rootPath, ut, ut) os.system(
) "cat %s/%s | grep 'precise test map fileeee:'| uniq >> %s/build/ut_map/%s/related_%s.txt"
% (dir_path, filename, rootPath, ut, ut)
)
else:
print("%s has failed,no has direcotory" % ut)
def doFun(file_path): def doFun(file_path):
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册