[wp-trac] [WordPress Trac] #51111: Privacy export test errors on Windows
WordPress Trac
noreply at wordpress.org
Sat Aug 22 15:58:05 UTC 2020
#51111: Privacy export test errors on Windows
------------------------------+-----------------------------
Reporter: SergeyBiryukov | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Build/Test Tools | Version:
Severity: normal | Keywords:
Focuses: |
------------------------------+-----------------------------
Background: #39975, #40856, #50664.
When running the test suite on Windows, occasionally I get some errors:
{{{
There were 4 errors:
1)
Tests_Privacy_WpPrivacyDeleteOldExportFiles::test_expired_files_should_be_deleted
unlink(S:\home\wordpress.test\develop/build/wp-content/uploads/wp-
personal-data-exports/test_contents/): Is a directory
S:\home\wordpress.test\develop\build\wp-includes\functions.php:7324
S:\home\wordpress.test\develop\tests\phpunit\tests\privacy\wpPrivacyDeleteOldExportFiles.php:120
2)
Tests_Privacy_WpPrivacyDeleteOldExportFiles::test_unexpired_files_should_not_be_deleted
unlink(S:\home\wordpress.test\develop/build/wp-content/uploads/wp-
personal-data-exports/test_contents/): Is a directory
S:\home\wordpress.test\develop\build\wp-includes\functions.php:7324
S:\home\wordpress.test\develop\tests\phpunit\tests\privacy\wpPrivacyDeleteOldExportFiles.php:131
3)
Tests_Privacy_WpPrivacyDeleteOldExportFiles::test_index_file_should_never_be_deleted
unlink(S:\home\wordpress.test\develop/build/wp-content/uploads/wp-
personal-data-exports/test_contents/): Is a directory
S:\home\wordpress.test\develop\build\wp-includes\functions.php:7324
S:\home\wordpress.test\develop\tests\phpunit\tests\privacy\wpPrivacyDeleteOldExportFiles.php:142
4)
Tests_Privacy_WpPrivacyDeleteOldExportFiles::test_filtered_expiration_time
unlink(S:\home\wordpress.test\develop/build/wp-content/uploads/wp-
personal-data-exports/test_contents/): Is a directory
S:\home\wordpress.test\develop\build\wp-includes\functions.php:7324
S:\home\wordpress.test\develop\tests\phpunit\tests\privacy\wpPrivacyDeleteOldExportFiles.php:155
}}}
Only seems to happen if the `wp-content/uploads/wp-personal-data-
exports/test_contents/` directory is older than 6 days, as
`wp_privacy_delete_old_export_files()` tries to delete it and fails.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51111>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list