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

fix bug;test=document_fix (#33221)

上级 e587853f
...@@ -293,10 +293,24 @@ class PRChecker(object): ...@@ -293,10 +293,24 @@ class PRChecker(object):
filterFiles.append(filename) 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(
'https://paddle-docker-tar.bj.bcebos.com/pre_test/prec_delta',
'prec_delta')
if ret:
with open('prec_delta') as delta:
for ut in delta:
ut_list.append(ut.rstrip('\r\n'))
else:
print('PREC download prec_delta failed')
exit(1)
PRECISION_TEST_Cases_ratio = format(
float(len(ut_list)) / float(self.get_all_count()), '.2f')
print("filterFiles: %s" % filterFiles) print("filterFiles: %s" % filterFiles)
print("ipipe_log_param_PRECISION_TEST: true") print("ipipe_log_param_PRECISION_TEST: true")
print("ipipe_log_param_PRECISION_TEST_Cases_count: 0") print("ipipe_log_param_PRECISION_TEST_Cases_count: %s" %
print("ipipe_log_param_PRECISION_TEST_Cases_ratio: 0") len(ut_list))
print("ipipe_log_param_PRECISION_TEST_Cases_ratio: %s" %
PRECISION_TEST_Cases_ratio)
return '\n'.join(ut_list) return '\n'.join(ut_list)
else: else:
for f in file_list: for f in file_list:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册