From 9b1cf5f0ce94e215df3943026de36c26904dc2ff Mon Sep 17 00:00:00 2001 From: czzhangheng Date: Wed, 3 Dec 2025 18:11:06 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E6=B5=8B=E8=AF=95=E8=84=9A?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- run_tests.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/run_tests.sh b/run_tests.sh index 94080b6..ef700a1 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -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