更新测试脚本

This commit is contained in:
czzhangheng 2025-12-03 18:11:06 +08:00
parent 440cb6936b
commit 9b1cf5f0ce
1 changed files with 2 additions and 2 deletions

View File

@ -52,9 +52,9 @@ for dataset in "${DATASETS[@]}"; do
continue
fi
# 执行测试命令并捕获输出
# 执行测试命令,同时捕获输出并显示在控制台上
echo "执行: python run.py --config $CONFIG_PATH"
output=$(python run.py --config "$CONFIG_PATH" 2>&1)
output=$(python run.py --config "$CONFIG_PATH" 2>&1 | tee /dev/tty)
# 如果没有找到明确的标记,回退到检查退出码
if [ $? -eq 0 ]; then