未验证 提交 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,6 +242,14 @@ class PRChecker(object):
else:
ut_list.extend(file_ut_map.get(f))
ut_list = list(set(ut_list))
if check_added_ut:
with open('{}/added_ut'.format(PADDLE_ROOT)) as utfile:
for ut in utfile:
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))
......@@ -251,12 +259,7 @@ class PRChecker(object):
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:
for ut in utfile:
print('PREC NEW UT: {}'.format(ut.rstrip('\r\n')))
ut_list.append(ut.rstrip('\r\n'))
exit(1)
return '\n'.join(ut_list)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册