Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
55509ae7
P
Paddle
项目概览
PaddlePaddle
/
Paddle
大约 1 年 前同步成功
通知
2299
Star
20931
Fork
5422
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
1423
列表
看板
标记
里程碑
合并请求
543
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
Paddle
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
1,423
Issue
1,423
列表
看板
标记
里程碑
合并请求
543
合并请求
543
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
未验证
提交
55509ae7
编写于
12月 16, 2021
作者:
Y
YUNSHEN XIE
提交者:
GitHub
12月 16, 2021
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
add defaults value for disable_ut (#38110)
上级
10ebe231
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
6 addition
and
6 deletion
+6
-6
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+6
-6
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
55509ae7
...
@@ -605,7 +605,7 @@ EOF
...
@@ -605,7 +605,7 @@ EOF
tmpfile
=
$tmp_dir
/
$tmpfile_rand
tmpfile
=
$tmp_dir
/
$tmpfile_rand
set
+ex
set
+ex
ut_startTime_s
=
`
date
+%s
`
ut_startTime_s
=
`
date
+%s
`
get_quickly_disable_ut||disable_ut_quickly
=
''
# indicate whether the case was in quickly disable list
get_quickly_disable_ut||disable_ut_quickly
=
'
disable_ut
'
# indicate whether the case was in quickly disable list
if
[
${
NIGHTLY_MODE
:-
OFF
}
==
"ON"
]
;
then
if
[
${
NIGHTLY_MODE
:-
OFF
}
==
"ON"
]
;
then
nightly_label
=
"(NIGHTLY_LABEL)"
nightly_label
=
"(NIGHTLY_LABEL)"
else
else
...
@@ -1080,7 +1080,7 @@ function get_quickly_disable_ut() {
...
@@ -1080,7 +1080,7 @@ function get_quickly_disable_ut() {
echo
${
disable_ut_quickly
}
echo
${
disable_ut_quickly
}
echo
"========================================="
echo
"========================================="
else
else
disable_ut_quickly
=
''
disable_ut_quickly
=
'
disable_ut
'
fi
fi
}
}
...
@@ -1229,7 +1229,7 @@ set +x
...
@@ -1229,7 +1229,7 @@ set +x
is_exclusive
=
''
# indicate whether the case is exclusive type
is_exclusive
=
''
# indicate whether the case is exclusive type
is_multicard
=
''
# indicate whether the case is multiple GPUs type
is_multicard
=
''
# indicate whether the case is multiple GPUs type
is_nightly
=
''
# indicate whether the case will only run at night
is_nightly
=
''
# indicate whether the case will only run at night
get_quickly_disable_ut||disable_ut_quickly
=
''
# indicate whether the case was in quickly disable list
get_quickly_disable_ut||disable_ut_quickly
=
'
disable_ut
'
# indicate whether the case was in quickly disable list
ctest
-N
|
awk
-F
': '
'{print $2}'
|
sed
'/^$/d'
|
sed
'$d'
>
all_ut_list
ctest
-N
|
awk
-F
': '
'{print $2}'
|
sed
'/^$/d'
|
sed
'$d'
>
all_ut_list
output
=
$(
python
${
PADDLE_ROOT
}
/tools/parallel_UT_rule.py
)
output
=
$(
python
${
PADDLE_ROOT
}
/tools/parallel_UT_rule.py
)
...
@@ -1719,7 +1719,7 @@ EOF
...
@@ -1719,7 +1719,7 @@ EOF
set
+x
set
+x
ut_startTime_s
=
`
date
+%s
`
ut_startTime_s
=
`
date
+%s
`
test_cases
=
$(
ctest
-N
-V
|
grep
"_xpu"
)
# cases list which would be run exclusively
test_cases
=
$(
ctest
-N
-V
|
grep
"_xpu"
)
# cases list which would be run exclusively
get_quickly_disable_ut||disable_ut_quickly
=
''
# indicate whether the case was in quickly disable list
get_quickly_disable_ut||disable_ut_quickly
=
'
disable_ut
'
# indicate whether the case was in quickly disable list
while
read
-r
line
;
do
while
read
-r
line
;
do
if
[[
"
$line
"
==
""
]]
;
then
if
[[
"
$line
"
==
""
]]
;
then
continue
continue
...
@@ -1753,7 +1753,7 @@ EOF
...
@@ -1753,7 +1753,7 @@ EOF
set
+x
set
+x
ut_startTime_s
=
`
date
+%s
`
ut_startTime_s
=
`
date
+%s
`
test_cases
=
$(
ctest
-N
-V
)
# get all test cases
test_cases
=
$(
ctest
-N
-V
)
# get all test cases
get_quickly_disable_ut||disable_ut_quickly
=
''
# indicate whether the case was in quickly disable list
get_quickly_disable_ut||disable_ut_quickly
=
'
disable_ut
'
# indicate whether the case was in quickly disable list
while
read
-r
line
;
do
while
read
-r
line
;
do
if
[[
"
$line
"
==
""
]]
;
then
if
[[
"
$line
"
==
""
]]
;
then
continue
continue
...
@@ -1814,7 +1814,7 @@ EOF
...
@@ -1814,7 +1814,7 @@ EOF
set
+x
set
+x
test_cases
=
$(
ctest
-N
-V
)
# get all test cases
test_cases
=
$(
ctest
-N
-V
)
# get all test cases
get_quickly_disable_ut||disable_ut_quickly
=
''
# indicate whether the case was in quickly disable list
get_quickly_disable_ut||disable_ut_quickly
=
'
disable_ut
'
# indicate whether the case was in quickly disable list
while
read
-r
line
;
do
while
read
-r
line
;
do
if
[[
"
$line
"
==
""
]]
;
then
if
[[
"
$line
"
==
""
]]
;
then
continue
continue
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录