-
Notifications
You must be signed in to change notification settings - Fork 275
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TestArbitraryPackageAttack TearDownClass failure #1119
Comments
I am thinking that this problem could appear in multiple places. With a quick search of the line
|
rmtree is only an issue because the server is still running in this case: so switching the order of rmtree and server kill here (and elsewhere if there's other places where the order is wrong) should help |
Yes, the cleanup in the files I have mentioned above are using the same order: remove the folder before stop the subprocess. |
Fixes an issue where rmtree tries to access and consequently remove a temp folder where the server has opened a file already. This results in error: "PermissionError: [WinError 32] The process cannot access the file because it is being used by another process" For reference read: theupdateframework#1119 Signed-off-by: Martin Vrachev <[email protected]>
Fixes an issue where rmtree tries to access and consequently remove a temp folder where the server has opened a file already. This results in error: "PermissionError: [WinError 32] The process cannot access the file because it is being used by another process" For reference read: theupdateframework#1119 Signed-off-by: Martin Vrachev <[email protected]>
@joshuagl I forgot to use the |
From PR #1113 CI run:
Looking at the code that seems logical:
If the server has files open in the temp directory, rmtree cannot succeed. Server should be killed (and waited on) first.
The text was updated successfully, but these errors were encountered: