Update Nlbench_beta.sh

This commit is contained in:
Jensfrank 2024-08-13 14:53:44 +08:00 committed by GitHub
parent de83bd263f
commit 63e0193f36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -444,7 +444,6 @@ generate_markdown_output() {
echo "[tabs]" > "$final_output_file"
local tabs_added=0
for i in "${!sections[@]}"; do
section="${sections[$i]}"
suffix="${file_suffixes[$i]}"
@ -455,17 +454,9 @@ generate_markdown_output() {
echo "\`\`\`" >> "$final_output_file"
echo "[/tab]" >> "$final_output_file"
rm "${base_output_file}_${suffix}"
((tabs_added++))
fi
done
# 如果没有添加任何标签,添加一个空的标签
if [ $tabs_added -eq 0 ]; then
echo "[tab=\"无测试结果\"]" >> "$final_output_file"
echo "没有选择任何测试或所有测试均未产生结果。" >> "$final_output_file"
echo "[/tab]" >> "$final_output_file"
fi
echo "[/tabs]" >> "$final_output_file"
echo "所有测试完成,结果已保存在 $final_output_file 中。"