未验证 提交 27bdbec7 编写于 作者: C chalsliu 提交者: GitHub

Refine precision test print message

上级 e63a68fe
......@@ -1051,6 +1051,7 @@ set -x
python3.7 $PADDLE_ROOT/tools/get_pr_ut.py
if [[ -f "ut_list" ]]; then
set +x
echo "PREC length: "`wc -l ut_list`
precision_cases=`cat ut_list`
set -x
fi
......
......@@ -242,15 +242,6 @@ class PRChecker(object):
else:
ut_list.extend(file_ut_map.get(f))
ut_list = list(set(ut_list))
ret = self.__wget_with_retry(
'https://sys-p0.bj.bcebos.com/prec/prec_delta{}'.format(
self.suffix))
if ret:
with open('prec_delta' + self.suffix) as delta:
for ut in delta:
ut_list.append(ut.rstrip('\r\n'))
else:
print('PREC download prec_delta failed')
if check_added_ut:
with open('{}/added_ut'.format(PADDLE_ROOT)) as utfile:
......@@ -258,6 +249,18 @@ class PRChecker(object):
print('PREC NEW UT: {}'.format(ut.rstrip('\r\n')))
ut_list.append(ut.rstrip('\r\n'))
if ut_list:
ret = self.__wget_with_retry(
'https://sys-p0.bj.bcebos.com/prec/prec_delta{}'.format(
self.suffix))
if ret:
with open('prec_delta' + self.suffix) as delta:
for ut in delta:
ut_list.append(ut.rstrip('\r\n'))
else:
print('PREC download prec_delta failed')
exit(1)
return '\n'.join(ut_list)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册