mirror of
https://github.com/everett7623/nodeloc_vps_test.git
synced 2024-12-27 00:35:19 +00:00
Update nodeloc_vps_autotest_media.sh
This commit is contained in:
parent
73bd561d02
commit
137f1ff47c
@ -133,7 +133,7 @@ show_welcome() {
|
|||||||
declare -a test_results
|
declare -a test_results
|
||||||
|
|
||||||
# 去除流媒体板块ANSI转义码并截取需要的部分
|
# 去除流媒体板块ANSI转义码并截取需要的部分
|
||||||
media_process_output() {
|
process_output() {
|
||||||
local input="$1"
|
local input="$1"
|
||||||
echo "$input" | sed 's/\x1b\[[0-9;]*m//g' | awk '/项目地址/{f=1} f; /检测脚本当天运行次数/{f=0}'
|
echo "$input" | sed 's/\x1b\[[0-9;]*m//g' | awk '/项目地址/{f=1} f; /检测脚本当天运行次数/{f=0}'
|
||||||
}
|
}
|
||||||
@ -165,7 +165,7 @@ run_all_tests() {
|
|||||||
format_results() {
|
format_results() {
|
||||||
# 处理流媒体解锁结果
|
# 处理流媒体解锁结果
|
||||||
local processed_streaming_result
|
local processed_streaming_result
|
||||||
processed_streaming_result=$(media_process_output "$streaming_result")
|
processed_streaming_result=$(process_output "$streaming_result")
|
||||||
|
|
||||||
result="[tabs]
|
result="[tabs]
|
||||||
[tab=\"流媒体\"]
|
[tab=\"流媒体\"]
|
||||||
|
Loading…
Reference in New Issue
Block a user