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

test=develop
test=document_fix
v1.8
chalsliu 5 years ago committed by GitHub
parent 40162227bb
commit 4aa9099067
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -28,7 +28,7 @@ class PRChecker(object):
self.repo = None
def check(self):
""" check pr """
""" check pr. """
filename = 'block.txt'
pr_id = os.getenv('GIT_PR_ID')
if not pr_id:
@ -44,7 +44,8 @@ class PRChecker(object):
with open(filename) as f:
for l in f:
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(0)

Loading…
Cancel
Save