Skip to content
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

Avoid "OSError: [Errno 39] Directory not empty" when running tests #50913

Closed

Conversation

servo-wpt-sync
Copy link
Collaborator

Since #35538, when executorservo.py tries to remove the temporary directories after running tests, an error is produced because these directories aren't empty.

Therefore, this changes os.rmdir into shutil.rmtree, in order to remove the directories and their contents.

Reviewed in servo/servo#35641

Since web-platform-tests#35538, when executorservo.py tries to remove the temporary
directories after running tests, an error is produced because these
directories aren't empty.

Therefore, this changes `os.rmdir` into `shutil.rmtree`, in order to
remove the directories and their contents.

Signed-off-by: Oriol Brufau <[email protected]>
Copy link
Collaborator

@wpt-pr-bot wpt-pr-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The review process for this patch is being conducted in the Servo project.

@servo-wpt-sync servo-wpt-sync deleted the servo_export_35641 branch February 25, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
do not merge yet infra servo-export wptrunner The automated test runner, commonly called through ./wpt run
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants