未验证 提交 4aa90990 编写于 作者: C chalsliu 提交者: GitHub

Fix error msg to match check_api_approvals.sh (#24777)

test=develop
test=document_fix
上级 40162227
...@@ -28,7 +28,7 @@ class PRChecker(object): ...@@ -28,7 +28,7 @@ class PRChecker(object):
self.repo = None self.repo = None
def check(self): def check(self):
""" check pr """ """ check pr. """
filename = 'block.txt' filename = 'block.txt'
pr_id = os.getenv('GIT_PR_ID') pr_id = os.getenv('GIT_PR_ID')
if not pr_id: if not pr_id:
...@@ -44,7 +44,8 @@ class PRChecker(object): ...@@ -44,7 +44,8 @@ class PRChecker(object):
with open(filename) as f: with open(filename) as f:
for l in f: for l in f:
if l.rstrip('\r\n') == user: if l.rstrip('\r\n') == user:
print('{} has UT to be fixed, so CI failed.'.format(user)) print('{} has unit-test to be fixed, so CI failed.'.format(
user))
exit(1) exit(1)
exit(0) exit(0)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册