Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
PaddlePaddle
Paddle
提交
188efd11
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看板
未验证
提交
188efd11
编写于
4月 18, 2023
作者:
T
tianshuo78520a
提交者:
GitHub
4月 18, 2023
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
del read (#52943)
* del read * fix * test log * fix * fix bug
上级
239dbc4e
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
41 addition
and
41 deletion
+41
-41
paddle/scripts/paddle_build.sh
paddle/scripts/paddle_build.sh
+41
-41
未找到文件。
paddle/scripts/paddle_build.sh
浏览文件 @
188efd11
...
@@ -687,10 +687,10 @@ EOF
...
@@ -687,10 +687,10 @@ EOF
is_retry_execuate
=
0
is_retry_execuate
=
0
if
[
-n
"
$failed_test_lists
"
]
;
then
if
[
-n
"
$failed_test_lists
"
]
;
then
mactest_error
=
1
mactest_error
=
1
read
need_retry_ut_str
<<<
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
"
|
sed
's/(//'
|
sed
's/- //'
)
need_retry_ut_str
=
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
"
|
sed
's/(//'
|
sed
's/- //'
)
need_retry_ut_arr
=(
${
need_retry_ut_str
}
)
need_retry_ut_arr
=(
${
need_retry_ut_str
}
)
need_retry_ut_count
=
${#
need_retry_ut_arr
[@]
}
need_retry_ut_count
=
${#
need_retry_ut_arr
[@]
}
re
ad
retry_unittests
<<<
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
"
|
sed
's/(//'
|
sed
's/- //'
)
re
try_unittests
=
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
"
|
sed
's/(//'
|
sed
's/- //'
)
if
[
$need_retry_ut_count
-lt
$exec_retry_threshold
]
;
then
if
[
$need_retry_ut_count
-lt
$exec_retry_threshold
]
;
then
while
(
[
$exec_times
-lt
$retry_time
]
)
while
(
[
$exec_times
-lt
$retry_time
]
)
do
do
...
@@ -702,7 +702,7 @@ EOF
...
@@ -702,7 +702,7 @@ EOF
if
[[
"
${
failed_test_lists
}
"
==
""
]]
;
then
if
[[
"
${
failed_test_lists
}
"
==
""
]]
;
then
break
break
else
else
re
ad
retry_unittests
<<<
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
"
|
sed
's/(//'
|
sed
's/- //'
)
re
try_unittests
=
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
"
|
sed
's/(//'
|
sed
's/- //'
)
fi
fi
fi
fi
echo
"========================================="
echo
"========================================="
...
@@ -835,10 +835,10 @@ set +x
...
@@ -835,10 +835,10 @@ set +x
if
[
${
TIMEOUT_DEBUG_HELP
:-
OFF
}
==
"ON"
]
;
then
if
[
${
TIMEOUT_DEBUG_HELP
:-
OFF
}
==
"ON"
]
;
then
bash
$PADDLE_ROOT
/tools/timeout_debug_help.sh
"
$failed_test_lists
"
# cat logs for tiemout uts which killed by ctest
bash
$PADDLE_ROOT
/tools/timeout_debug_help.sh
"
$failed_test_lists
"
# cat logs for tiemout uts which killed by ctest
fi
fi
read
need_retry_ut_str
<<<
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
need_retry_ut_str
=
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
need_retry_ut_arr
=(
${
need_retry_ut_str
}
)
need_retry_ut_arr
=(
${
need_retry_ut_str
}
)
need_retry_ut_count
=
${#
need_retry_ut_arr
[@]
}
need_retry_ut_count
=
${#
need_retry_ut_arr
[@]
}
re
ad
retry_unittests
<<<
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
re
try_unittests
=
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
while
(
[
$exec_times
-lt
$retry_time
]
)
while
(
[
$exec_times
-lt
$retry_time
]
)
do
do
if
[[
"
${
exec_times
}
"
==
"0"
]]
;
then
if
[[
"
${
exec_times
}
"
==
"0"
]]
;
then
...
@@ -848,7 +848,7 @@ set +x
...
@@ -848,7 +848,7 @@ set +x
is_retry_execuate
=
1
is_retry_execuate
=
1
fi
fi
elif
[[
"
${
exec_times
}
"
==
"1"
]]
;
then
elif
[[
"
${
exec_times
}
"
==
"1"
]]
;
then
read
need_retry_ut_str
<<<
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
need_retry_ut_str
=
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
need_retry_ut_arr
=(
${
need_retry_ut_str
}
)
need_retry_ut_arr
=(
${
need_retry_ut_str
}
)
need_retry_ut_count
=
${#
need_retry_ut_arr
[@]
}
need_retry_ut_count
=
${#
need_retry_ut_arr
[@]
}
if
[
$need_retry_ut_count
-lt
$exec_retry_threshold
]
;
then
if
[
$need_retry_ut_count
-lt
$exec_retry_threshold
]
;
then
...
@@ -866,7 +866,7 @@ set +x
...
@@ -866,7 +866,7 @@ set +x
if
[[
"
${
failed_test_lists
}
"
==
""
]]
;
then
if
[[
"
${
failed_test_lists
}
"
==
""
]]
;
then
break
break
else
else
re
ad
retry_unittests
<<<
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
re
try_unittests
=
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
fi
fi
fi
fi
echo
"========================================="
echo
"========================================="
...
@@ -1470,18 +1470,18 @@ set +x
...
@@ -1470,18 +1470,18 @@ set +x
if
[[
"
$line
"
==
""
]]
;
then
if
[[
"
$line
"
==
""
]]
;
then
continue
continue
fi
fi
read
matchstr
<<<
$(
echo
"
$line
"
|grep
-oEi
'Test[ \t]+#'
)
matchstr
=
$(
echo
$line
|grep
-oEi
'Test[ \t]+#'
)
||
true
if
[[
"
$matchstr
"
==
""
]]
;
then
if
[[
"
$matchstr
"
==
""
]]
;
then
# Any test case with LABELS property would be parse here
# Any test case with LABELS property would be parse here
# RUN_TYPE=EXCLUSIVE mean the case would run exclusively
# RUN_TYPE=EXCLUSIVE mean the case would run exclusively
# RUN_TYPE=DIST mean the case would take two graph GPUs during runtime
# RUN_TYPE=DIST mean the case would take two graph GPUs during runtime
# RUN_TYPE=NIGHTLY or RUN_TYPE=DIST:NIGHTLY or RUN_TYPE=EXCLUSIVE:NIGHTLY means the case will ONLY run at night
# RUN_TYPE=NIGHTLY or RUN_TYPE=DIST:NIGHTLY or RUN_TYPE=EXCLUSIVE:NIGHTLY means the case will ONLY run at night
read
is_exclusive
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=EXCLUSIVE"
)
is_exclusive
=
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=EXCLUSIVE"
)
||
true
read
is_multicard
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=DIST"
)
is_multicard
=
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=DIST"
)
||
true
read
is_nightly
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=NIGHTLY|RUN_TYPE=DIST:NIGHTLY|RUN_TYPE=EXCLUSIVE:NIGHTLY"
)
is_nightly
=
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=NIGHTLY|RUN_TYPE=DIST:NIGHTLY|RUN_TYPE=EXCLUSIVE:NIGHTLY"
)
||
true
continue
continue
fi
fi
read
testcase
<<<
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
testcase
=
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
if
[[
"
$is_nightly
"
!=
""
]]
&&
[
${
NIGHTLY_MODE
:-
OFF
}
==
"OFF"
]
;
then
if
[[
"
$is_nightly
"
!=
""
]]
&&
[
${
NIGHTLY_MODE
:-
OFF
}
==
"OFF"
]
;
then
echo
$testcase
" will only run at night."
echo
$testcase
" will only run at night."
...
@@ -1503,7 +1503,7 @@ set +x
...
@@ -1503,7 +1503,7 @@ set +x
if
[[
"
$is_multicard
"
==
""
]]
;
then
if
[[
"
$is_multicard
"
==
""
]]
;
then
# trick: treat all test case with prefix "test_dist" as dist case, and would run on 2 GPUs
# trick: treat all test case with prefix "test_dist" as dist case, and would run on 2 GPUs
read
is_multicard
<<<
$(
echo
"
$testcase
"
|grep
-oEi
"test_dist_"
)
is_multicard
=
$(
echo
"
$testcase
"
|grep
-oEi
"test_dist_"
)
fi
fi
if
[[
"
$is_exclusive
"
!=
""
]]
;
then
if
[[
"
$is_exclusive
"
!=
""
]]
;
then
if
[[
$(
echo
$high_parallel_job
|
grep
-o
"
\^
$testcase
\\
$"
)
!=
""
]]
;
then
if
[[
$(
echo
$high_parallel_job
|
grep
-o
"
\^
$testcase
\\
$"
)
!=
""
]]
;
then
...
@@ -1589,10 +1589,10 @@ set +x
...
@@ -1589,10 +1589,10 @@ set +x
if
[
${
TIMEOUT_DEBUG_HELP
:-
OFF
}
==
"ON"
]
;
then
if
[
${
TIMEOUT_DEBUG_HELP
:-
OFF
}
==
"ON"
]
;
then
bash
$PADDLE_ROOT
/tools/timeout_debug_help.sh
"
$failed_test_lists
"
# cat logs for tiemout uts which killed by ctest
bash
$PADDLE_ROOT
/tools/timeout_debug_help.sh
"
$failed_test_lists
"
# cat logs for tiemout uts which killed by ctest
fi
fi
read
need_retry_ut_str
<<<
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
need_retry_ut_str
=
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
need_retry_ut_arr
=(
${
need_retry_ut_str
}
)
need_retry_ut_arr
=(
${
need_retry_ut_str
}
)
need_retry_ut_count
=
${#
need_retry_ut_arr
[@]
}
need_retry_ut_count
=
${#
need_retry_ut_arr
[@]
}
re
ad
retry_unittests
<<<
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
re
try_unittests
=
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
while
(
[
$exec_times
-lt
$retry_time
]
)
while
(
[
$exec_times
-lt
$retry_time
]
)
do
do
if
[[
"
${
exec_times
}
"
==
"0"
]]
;
then
if
[[
"
${
exec_times
}
"
==
"0"
]]
;
then
...
@@ -1602,7 +1602,7 @@ set +x
...
@@ -1602,7 +1602,7 @@ set +x
is_retry_execuate
=
1
is_retry_execuate
=
1
fi
fi
elif
[[
"
${
exec_times
}
"
==
"1"
]]
;
then
elif
[[
"
${
exec_times
}
"
==
"1"
]]
;
then
read
need_retry_ut_str
<<<
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
need_retry_ut_str
=
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
need_retry_ut_arr
=(
${
need_retry_ut_str
}
)
need_retry_ut_arr
=(
${
need_retry_ut_str
}
)
need_retry_ut_count
=
${#
need_retry_ut_arr
[@]
}
need_retry_ut_count
=
${#
need_retry_ut_arr
[@]
}
if
[
$need_retry_ut_count
-lt
$exec_retry_threshold
]
;
then
if
[
$need_retry_ut_count
-lt
$exec_retry_threshold
]
;
then
...
@@ -1620,7 +1620,7 @@ set +x
...
@@ -1620,7 +1620,7 @@ set +x
if
[[
"
${
failed_test_lists
}
"
==
""
]]
;
then
if
[[
"
${
failed_test_lists
}
"
==
""
]]
;
then
break
break
else
else
re
ad
retry_unittests
<<<
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
re
try_unittests
=
$(
echo
"
$failed_test_lists
"
|
grep
-oEi
"
\-
.+
\(
.+
\)
"
|
sed
's/(.\+)//'
|
sed
's/- //'
)
fi
fi
fi
fi
echo
"========================================="
echo
"========================================="
...
@@ -1630,9 +1630,9 @@ set +x
...
@@ -1630,9 +1630,9 @@ set +x
echo
"
${
retry_unittests
}
"
echo
"
${
retry_unittests
}
"
for
line
in
${
retry_unittests
[@]
}
;
for
line
in
${
retry_unittests
[@]
}
;
do
do
read
tmp_one_tmp
<<<
"
$(
echo
$single_card_tests
|
grep
-oEi
$line
)
"
tmp_one_tmp
=
"
$(
echo
$single_card_tests
|
grep
-oEi
$line
)
"
read
tmp_mul_tmp
<<<
"
$(
echo
$multiple_card_tests
|
grep
-oEi
$line
)
"
tmp_mul_tmp
=
"
$(
echo
$multiple_card_tests
|
grep
-oEi
$line
)
"
read
exclusive_tmp
<<<
"
$(
echo
$exclusive_tests
|
grep
-oEi
$line
)
"
exclusive_tmp
=
"
$(
echo
$exclusive_tests
|
grep
-oEi
$line
)
"
if
[[
"
$tmp_one_tmp
"
!=
""
]]
;
then
if
[[
"
$tmp_one_tmp
"
!=
""
]]
;
then
if
[[
"
$one_card_retry
"
==
""
]]
;
then
if
[[
"
$one_card_retry
"
==
""
]]
;
then
...
@@ -1707,18 +1707,18 @@ set +x
...
@@ -1707,18 +1707,18 @@ set +x
if
[[
"
$line
"
==
""
]]
;
then
if
[[
"
$line
"
==
""
]]
;
then
continue
continue
fi
fi
read
matchstr
<<<
$(
echo
"
$line
"
|grep
-oEi
'Test[ \t]+#'
)
matchstr
=
"
$(
echo
$line
|grep
-oEi
'Test[ \t]+#'
)
"
||
true
if
[[
"
$matchstr
"
==
""
]]
;
then
if
[[
"
$matchstr
"
==
""
]]
;
then
# Any test case with LABELS property would be parse here
# Any test case with LABELS property would be parse here
# RUN_TYPE=EXCLUSIVE mean the case would run exclusively
# RUN_TYPE=EXCLUSIVE mean the case would run exclusively
# RUN_TYPE=DIST mean the case would take two graph GPUs during runtime
# RUN_TYPE=DIST mean the case would take two graph GPUs during runtime
# RUN_TYPE=NIGHTLY or RUN_TYPE=DIST:NIGHTLY or RUN_TYPE=EXCLUSIVE:NIGHTLY means the case will ONLY run at night
# RUN_TYPE=NIGHTLY or RUN_TYPE=DIST:NIGHTLY or RUN_TYPE=EXCLUSIVE:NIGHTLY means the case will ONLY run at night
read
is_exclusive
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=EXCLUSIVE"
)
is_exclusive
=
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=EXCLUSIVE"
)
read
is_multicard
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=DIST"
)
is_multicard
=
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=DIST"
)
read
is_nightly
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=NIGHTLY|RUN_TYPE=DIST:NIGHTLY|RUN_TYPE=EXCLUSIVE:NIGHTLY"
)
is_nightly
=
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=NIGHTLY|RUN_TYPE=DIST:NIGHTLY|RUN_TYPE=EXCLUSIVE:NIGHTLY"
)
continue
continue
fi
fi
read
testcase
<<<
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
testcase
=
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
if
[[
"
$is_nightly
"
!=
""
]]
&&
[
${
NIGHTLY_MODE
:-
OFF
}
==
"OFF"
]
;
then
if
[[
"
$is_nightly
"
!=
""
]]
&&
[
${
NIGHTLY_MODE
:-
OFF
}
==
"OFF"
]
;
then
echo
$testcase
" will only run at night."
echo
$testcase
" will only run at night."
...
@@ -1729,7 +1729,7 @@ set +x
...
@@ -1729,7 +1729,7 @@ set +x
if
[[
"
$is_multicard
"
==
""
]]
;
then
if
[[
"
$is_multicard
"
==
""
]]
;
then
# trick: treat all test case with prefix "test_dist" as dist case, and would run on 2 GPUs
# trick: treat all test case with prefix "test_dist" as dist case, and would run on 2 GPUs
read
is_multicard
<<<
$(
echo
"
$testcase
"
|grep
-oEi
"test_dist_"
)
is_multicard
=
$(
echo
"
$testcase
"
|grep
-oEi
"test_dist_"
)
fi
fi
if
[[
"
$is_exclusive
"
!=
""
]]
;
then
if
[[
"
$is_exclusive
"
!=
""
]]
;
then
exclusive_card_tests
=
"
$exclusive_card_tests
|^
$testcase
$"
exclusive_card_tests
=
"
$exclusive_card_tests
|^
$testcase
$"
...
@@ -1973,16 +1973,16 @@ set +x
...
@@ -1973,16 +1973,16 @@ set +x
if
[[
"
$line
"
==
""
]]
;
then
if
[[
"
$line
"
==
""
]]
;
then
continue
continue
fi
fi
read
matchstr
<<<
$(
echo
"
$line
"
|grep
-oEi
'Test[ \t]+#'
)
matchstr
=
"
$(
echo
$line
|grep
-oEi
'Test[ \t]+#'
)
"
||
true
if
[[
"
$matchstr
"
==
""
]]
;
then
if
[[
"
$matchstr
"
==
""
]]
;
then
# Any test case with LABELS property would be parse here
# Any test case with LABELS property would be parse here
# RUN_TYPE=EXCLUSIVE mean the case would run exclusively
# RUN_TYPE=EXCLUSIVE mean the case would run exclusively
# RUN_TYPE=DIST mean the case would take two graph GPUs during runtime
# RUN_TYPE=DIST mean the case would take two graph GPUs during runtime
read
is_exclusive
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=EXCLUSIVE"
)
is_exclusive
=
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=EXCLUSIVE"
)
read
is_multicard
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=DIST"
)
is_multicard
=
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=DIST"
)
continue
continue
fi
fi
read
testcase
<<<
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
testcase
=
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
if
[[
"
$testcase
"
==
"simple_precision_test"
]]
;
then
if
[[
"
$testcase
"
==
"simple_precision_test"
]]
;
then
continue
continue
...
@@ -1990,7 +1990,7 @@ set +x
...
@@ -1990,7 +1990,7 @@ set +x
if
[[
"
$is_multicard
"
==
""
]]
;
then
if
[[
"
$is_multicard
"
==
""
]]
;
then
# trick: treat all test case with prefix "test_dist" as dist case, and would run on 2 GPUs
# trick: treat all test case with prefix "test_dist" as dist case, and would run on 2 GPUs
read
is_multicard
<<<
$(
echo
"
$testcase
"
|grep
-oEi
"test_dist_"
)
is_multicard
=
$(
echo
"
$testcase
"
|grep
-oEi
"test_dist_"
)
fi
fi
if
[[
"
$is_exclusive
"
!=
""
]]
;
then
if
[[
"
$is_exclusive
"
!=
""
]]
;
then
...
@@ -2081,20 +2081,20 @@ set +x
...
@@ -2081,20 +2081,20 @@ set +x
if
[[
"
$line
"
==
""
]]
;
then
if
[[
"
$line
"
==
""
]]
;
then
continue
continue
fi
fi
read
matchstr
<<<
$(
echo
"
$line
"
|grep
-oEi
'Test[ \t]+#'
)
matchstr
=
"
$(
echo
$line
|grep
-oEi
'Test[ \t]+#'
)
"
||
true
if
[[
"
$matchstr
"
==
""
]]
;
then
if
[[
"
$matchstr
"
==
""
]]
;
then
# Any test case with LABELS property would be parse here
# Any test case with LABELS property would be parse here
# RUN_TYPE=EXCLUSIVE mean the case would run exclusively
# RUN_TYPE=EXCLUSIVE mean the case would run exclusively
# RUN_TYPE=DIST mean the case would take two graph GPUs during runtime
# RUN_TYPE=DIST mean the case would take two graph GPUs during runtime
read
is_exclusive
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=EXCLUSIVE"
)
is_exclusive
=
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=EXCLUSIVE"
)
read
is_multicard
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=DIST"
)
is_multicard
=
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=DIST"
)
continue
continue
fi
fi
read
testcase
<<<
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
testcase
=
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
if
[[
"
$is_multicard
"
==
""
]]
;
then
if
[[
"
$is_multicard
"
==
""
]]
;
then
# trick: treat all test case with prefix "test_dist" as dist case, and would run on 2 GPUs
# trick: treat all test case with prefix "test_dist" as dist case, and would run on 2 GPUs
read
is_multicard
<<<
$(
echo
"
$testcase
"
|grep
-oEi
"test_dist_"
)
is_multicard
=
$(
echo
"
$testcase
"
|grep
-oEi
"test_dist_"
)
fi
fi
if
[[
"
$is_exclusive
"
!=
""
]]
;
then
if
[[
"
$is_exclusive
"
!=
""
]]
;
then
...
@@ -2223,7 +2223,7 @@ set +x
...
@@ -2223,7 +2223,7 @@ set +x
if
[[
"
$line
"
==
""
]]
;
then
if
[[
"
$line
"
==
""
]]
;
then
continue
continue
fi
fi
read
testcase
<<<
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
testcase
=
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
if
[[
"
$single_card_tests
"
==
""
]]
;
then
if
[[
"
$single_card_tests
"
==
""
]]
;
then
single_card_tests
=
"^
$testcase
$"
single_card_tests
=
"^
$testcase
$"
else
else
...
@@ -2259,14 +2259,14 @@ set +x
...
@@ -2259,14 +2259,14 @@ set +x
if
[[
"
$line
"
==
""
]]
;
then
if
[[
"
$line
"
==
""
]]
;
then
continue
continue
fi
fi
read
matchstr
<<<
$(
echo
"
$line
"
|grep
-oEi
'Test[ \t]+#'
)
matchstr
=
$(
echo
$line
|grep
-oEi
'Test[ \t]+#'
)
||
true
if
[[
"
$matchstr
"
==
""
]]
;
then
if
[[
"
$matchstr
"
==
""
]]
;
then
# Any test case with LABELS property would be parse here
# Any test case with LABELS property would be parse here
# RUN_TYPE=CINN mean the case would run in CINN CI.
# RUN_TYPE=CINN mean the case would run in CINN CI.
read
is_cinn
<<<
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=CINN"
)
is_cinn
=
$(
echo
"
$line
"
|grep
-oEi
"RUN_TYPE=CINN"
)
||
true
continue
continue
fi
fi
read
testcase
<<<
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
testcase
=
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
if
[[
"
$is_cinn
"
!=
""
]]
;
then
if
[[
"
$is_cinn
"
!=
""
]]
;
then
if
[[
"
$single_card_tests
"
==
""
]]
;
then
if
[[
"
$single_card_tests
"
==
""
]]
;
then
single_card_tests
=
"^
$testcase
$"
single_card_tests
=
"^
$testcase
$"
...
@@ -2523,7 +2523,7 @@ set +x
...
@@ -2523,7 +2523,7 @@ set +x
if
[[
"
$line
"
==
""
]]
;
then
if
[[
"
$line
"
==
""
]]
;
then
continue
continue
fi
fi
read
testcase
<<<
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
testcase
=
$(
echo
"
$line
"
|grep
-oEi
"
\w
+$"
)
if
[[
"
$single_card_tests
"
==
""
]]
;
then
if
[[
"
$single_card_tests
"
==
""
]]
;
then
single_card_tests
=
"^
$testcase
$"
single_card_tests
=
"^
$testcase
$"
else
else
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录