Skip to content

Commit b6de47c

Browse files
authored
fix: windows resource busy/locked (#203)
* fix: windows resource busy/locked * fix: log as debug
1 parent f3735d5 commit b6de47c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/ReTestItems.jl

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,12 @@ function _runtests_in_current_env(
461461
Test.TESTSET_PRINT_ENABLE[] = true
462462
# Cleanup test setup logs
463463
foreach(Iterators.filter(endswith(".log"), readdir(RETESTITEMS_TEMP_FOLDER[], join=true))) do logfile
464-
rm(logfile; force=true) # `force` to ignore error if file already cleaned up
464+
try
465+
# See https://github.com/JuliaTesting/ReTestItems.jl/issues/124
466+
rm(logfile; force=true) # `force` to ignore error if file already cleaned up
467+
catch err
468+
@debug "Error while attempting to remove $(logfile)" err
469+
end
465470
end
466471
end
467472
return nothing

0 commit comments

Comments
 (0)