[CI] Fix accidental deletion of failed_tests.log during log cleanup (#6634)

This commit is contained in:
YuBaoku
2026-03-03 22:06:26 +08:00
committed by GitHub
parent c3d6d706d5
commit 9a48a41abc
+3 -1
View File
@@ -36,7 +36,9 @@ for file in $TEST_FILES; do
echo "Running pytest file: $file"
# Clean up previous logs
rm -rf "${run_path}"/log* || true
rm -rf "${run_path}"/*.log || true
for f in "${run_path}"/*.log; do
[[ "$(basename "$f")" != "failed_tests.log" ]] && rm -f "$f"
done
# Run pytest with coverage for the current file
python -m coverage run -m pytest -c ${PYTEST_INI} "$file" -vv -s