Closed Bug 1950232 Opened 21 days ago Closed 20 days ago

[wpt-sync] Sync PR 50913 - Avoid "OSError: [Errno 39] Directory not empty" when running tests

Categories

(Testing :: web-platform-tests, task, P4)

task

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 50913 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/50913
Details from upstream follow.

Oriol Brufau <obrufau@igalia.com> wrote:

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

Since #<!-- nolink -->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.

<!-- Please describe your changes on the following line: -->

Reviewed in servo/servo#35641

Status: NEW → RESOLVED
Closed: 20 days ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.