mirror of
https://github.com/PaddlePaddle/FastDeploy.git
synced 2026-04-22 16:07:51 +08:00
[CI] Fix accidental deletion of failed_tests.log during log cleanup (#6634)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user