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

add files need exec all cases (#33226)

上级 c4dbeca3
...@@ -138,7 +138,7 @@ class PRChecker(object): ...@@ -138,7 +138,7 @@ 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',
...@@ -147,7 +147,7 @@ class PRChecker(object): ...@@ -147,7 +147,7 @@ class PRChecker(object):
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
...@@ -285,6 +285,9 @@ class PRChecker(object): ...@@ -285,6 +285,9 @@ class PRChecker(object):
if filename.startswith( if filename.startswith(
(PADDLE_ROOT + 'python/', PADDLE_ROOT + 'paddle/fluid/')): (PADDLE_ROOT + 'python/', PADDLE_ROOT + 'paddle/fluid/')):
file_list.append(filename) file_list.append(filename)
else:
if file_dict[filename] == 'added':
file_list.append(filename)
else: else:
isWhiteFile = self.get_is_white_file(filename) isWhiteFile = self.get_is_white_file(filename)
if isWhiteFile == False: if isWhiteFile == False:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册