未验证 提交 dfce571c 编写于 作者: Z zhangchunle 提交者: GitHub

add files need exec all cases (#33226)

上级 c4dbeca3
...@@ -138,16 +138,16 @@ class PRChecker(object): ...@@ -138,16 +138,16 @@ class PRChecker(object):
def get_is_white_file(self, filename): def get_is_white_file(self, filename):
""" judge is white file in pr's files. """ """ judge is white file in pr's files. """
isWhiteFile = False isWhiteFile = False
white_files = (PADDLE_ROOT + 'cmake/', PADDLE_ROOT + 'patches/', not_white_files = (PADDLE_ROOT + 'cmake/', PADDLE_ROOT + 'patches/',
PADDLE_ROOT + 'tools/dockerfile/', PADDLE_ROOT + 'tools/dockerfile/',
PADDLE_ROOT + 'tools/windows/', PADDLE_ROOT + 'tools/windows/',
PADDLE_ROOT + 'tools/test_runner.py', PADDLE_ROOT + 'tools/test_runner.py',
PADDLE_ROOT + 'tools/parallel_UT_rule.py', PADDLE_ROOT + 'tools/parallel_UT_rule.py',
PADDLE_ROOT + 'paddle/scripts/paddle_build.sh', PADDLE_ROOT + 'paddle/scripts/paddle_build.sh',
PADDLE_ROOT + 'paddle/scripts/paddle_build.bat') PADDLE_ROOT + 'paddle/scripts/paddle_build.bat')
if 'cmakelist' in filename.lower(): if 'cmakelist' in filename.lower():
isWhiteFile = False isWhiteFile = False
elif filename.startswith((white_files)): elif filename.startswith((not_white_files)):
isWhiteFile = False isWhiteFile = False
else: else:
isWhiteFile = True isWhiteFile = True
...@@ -286,11 +286,14 @@ class PRChecker(object): ...@@ -286,11 +286,14 @@ class PRChecker(object):
(PADDLE_ROOT + 'python/', PADDLE_ROOT + 'paddle/fluid/')): (PADDLE_ROOT + 'python/', PADDLE_ROOT + 'paddle/fluid/')):
file_list.append(filename) file_list.append(filename)
else: else:
isWhiteFile = self.get_is_white_file(filename) if file_dict[filename] == 'added':
if isWhiteFile == False:
file_list.append(filename) file_list.append(filename)
else: else:
filterFiles.append(filename) isWhiteFile = self.get_is_white_file(filename)
if isWhiteFile == False:
file_list.append(filename)
else:
filterFiles.append(filename)
if len(file_list) == 0: if len(file_list) == 0:
ut_list.append('filterfiles_placeholder') ut_list.append('filterfiles_placeholder')
ret = self.__urlretrieve( ret = self.__urlretrieve(
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册