From df1dbff160718de418cef4f02ea81070a7aed23a Mon Sep 17 00:00:00 2001 From: zhangchunle Date: Tue, 22 Feb 2022 10:24:45 +0800 Subject: [PATCH] update precision catalog (#39717) --- tools/get_pr_ut.py | 21 +++++++++++++++------ 1 file changed, 15 insertions(+), 6 deletions(-) diff --git a/tools/get_pr_ut.py b/tools/get_pr_ut.py index 0ba60265353..6b90a656f01 100644 --- a/tools/get_pr_ut.py +++ b/tools/get_pr_ut.py @@ -139,13 +139,10 @@ class PRChecker(object): """ judge is white file in pr's files. """ isWhiteFile = False not_white_files = (PADDLE_ROOT + 'cmake/', PADDLE_ROOT + 'patches/', - PADDLE_ROOT + 'paddle/testing/', PADDLE_ROOT + 'tools/dockerfile/', PADDLE_ROOT + 'tools/windows/', PADDLE_ROOT + 'tools/test_runner.py', - PADDLE_ROOT + 'tools/parallel_UT_rule.py', - PADDLE_ROOT + 'paddle/scripts/paddle_build.sh', - PADDLE_ROOT + 'paddle/scripts/paddle_build.bat') + PADDLE_ROOT + 'tools/parallel_UT_rule.py') if 'cmakelist' in filename.lower(): isWhiteFile = False elif filename.startswith((not_white_files)): @@ -285,9 +282,21 @@ class PRChecker(object): file_list = [] file_dict = self.get_pr_files() for filename in file_dict: - if filename.startswith( - (PADDLE_ROOT + 'python/', PADDLE_ROOT + 'paddle/fluid/')): + if filename.startswith(PADDLE_ROOT + 'python/'): file_list.append(filename) + elif filename.startswith(PADDLE_ROOT + 'paddle/'): + if filename.startswith((PADDLE_ROOT + 'paddle/infrt', + PADDLE_ROOT + 'paddle/utils')): + filterFiles.append(filename) + elif filename.startswith(PADDLE_ROOT + 'paddle/scripts'): + if filename.startswith( + (PADDLE_ROOT + 'paddle/scripts/paddle_build.sh', + PADDLE_ROOT + 'paddle/scripts/paddle_build.bat')): + file_list.append(filename) + else: + filterFiles.append(filename) + else: + file_list.append(filename) else: if file_dict[filename] == 'added': file_list.append(filename) -- GitLab