-
Bug
-
Resolution: Fixed
-
Minor
-
3.11, 4.0
-
MOODLE_311_STABLE, MOODLE_400_STABLE
-
MOODLE_311_STABLE
-
Just run a complete phpunit here against Moodle 3.11dev+ and got these 2 new errors:
2) core_backup_cleanup_task_testcase::test_backup_cleanup_task_deletes_records
|
rmdir(C:\Users\stronk7\moodledata\integration_phpunit/temp/backup): Directory not empty
|
|
C:\Users\stronk7\git_moodle\integration\lib\moodlelib.php:9793
|
C:\Users\stronk7\git_moodle\integration\lib\moodlelib.php:9782
|
C:\Users\stronk7\git_moodle\integration\lib\testing\classes\util.php:792
|
C:\Users\stronk7\git_moodle\integration\lib\phpunit\classes\util.php:266
|
C:\Users\stronk7\git_moodle\integration\lib\phpunit\classes\advanced_testcase.php:534
|
C:\Users\stronk7\git_moodle\integration\lib\phpunit\classes\advanced_testcase.php:114
|
|
3) core_backup_cleanup_task_testcase::test_backup_cleanup_task_deletes_files
|
unlink(C:\Users\stronk7\moodledata\integration_phpunit/temp/backup/5436f391b55a70cee61f90afd580b101.log): Permission denied
|
|
C:\Users\stronk7\git_moodle\integration\lib\moodlelib.php:9784
|
C:\Users\stronk7\git_moodle\integration\lib\moodlelib.php:9782
|
C:\Users\stronk7\git_moodle\integration\lib\testing\classes\util.php:792
|
C:\Users\stronk7\git_moodle\integration\lib\phpunit\classes\util.php:266
|
C:\Users\stronk7\git_moodle\integration\lib\phpunit\classes\advanced_testcase.php:534
|
C:\Users\stronk7\git_moodle\integration\lib\phpunit\classes\advanced_testcase.php:100
|
These problems use to happen when some file has been left unclosed under Windows and that prevents any write/remove operation on them.
Haven't checked what happens in 3.10.x or older, the problems didn't exist on 3.10.0 release but maybe now they do. Please check.
- is a regression caused by
-
MDL-71044 Extend the 'backup_cleanup_task' scheduled task to remove old files
- Closed