Subject: | Undeletable leftovers after build+test |
After building and testing the distribution there are usually some directories left which cannot be deleted with rmtree() of File::Path. The situation looks like this:
$ ls -al
total 64
drwxrwxr-x 16 cpansand cpansand 4096 Jul 18 08:11 .
drwxrwxr-x 7 cpansand cpansand 4096 Jul 18 08:11 ..
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6001.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6002.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6003.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6004.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6005.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6006.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6007.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6008.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6009.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6010.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6012.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6013.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6015.000.A
d--------- 2 cpansand cpansand 4096 Jul 15 18:28 6017.000.A
rmtree() fails like this:
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6013.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6009.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6008.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6002.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6001.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6006.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6010.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6003.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6017.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6012.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6015.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6004.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6007.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot chdir to child for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4/6005.000.A: Permission denied at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
cannot remove directory for /home/cpansand/.local/share/.cpan/build/2020071516/mb-0.06-4: Directory not empty at /home/eserte/src/srezic-misc/scripts/cpan_smoke_modules line 2242.
It would be good if all test directories would be deleted after the test suite, or the permissions adjusted.