diff --git a/tools/get_pr_ut.py b/tools/get_pr_ut.py index 4c21d59cbe2962eb6adfdc2551d02d4e115b3a1a..d8440ad048939313c696085b2ec59187422b6a83 100644 --- a/tools/get_pr_ut.py +++ b/tools/get_pr_ut.py @@ -125,12 +125,16 @@ class PRChecker(object): """ Get files in pull request. """ page = 0 file_dict = {} + file_count = 0 while True: files = self.pr.get_files().get_page(page) if not files: break for f in files: file_dict[PADDLE_ROOT + f.filename] = f.status + file_count += 1 + if file_count == 30: #if pr file count = 31, nend to run all case + break page += 1 print("pr modify files: %s" % file_dict) return file_dict @@ -282,6 +286,8 @@ class PRChecker(object): filterFiles = [] file_list = [] file_dict = self.get_pr_files() + if len(file_dict) == 30: #if pr file count = 31, nend to run all case + return '' for filename in file_dict: if filename.startswith(PADDLE_ROOT + 'python/'): file_list.append(filename)