Bug #32725

Folder removal sometimes fail in tests

Added by Karsten Dambekalns over 3 years ago. Updated over 3 years ago.

Status:Resolved Start date:2011-12-20
Priority:Must have Due date:
Assigned To:Karsten Dambekalns % Done:

100%

Category:Utility
Target version:TYPO3 Flow Base Distribution - 1.1 beta 1
PHP Version: Complexity:
Has patch:No Affected Flow version:Git master

Description

On the CI server we see errors like

1) TYPO3\FLOW3\Tests\Unit\Resource\Publishing\FileSystemPublishingTargetTest::publishStaticResourcesLinksTheSpecifiedDirectoryIfMirrorModeIsLink
TYPO3\FLOW3\Utility\Exception: Could not unlink file "/tmp/FLOW3FileSystemPublishingTargetTestTarget/_Resources/Static/..".

Note the double dot at the end.


Related issues

related to TYPO3.Flow - Bug #32762: Folder removal fails in tests Resolved

Associated revisions

Revision 71ee8671
Added by Karsten Dambekalns over 3 years ago

[BUGFIX] Make emptyDirectoryRecursively() ignore . and ..

The check for this breaks when the iterator returns . and .., they are
then handled like files, which cannot work.

Change-Id: Ic4fb3376d51b291d540fcc2fbff61c21c243b81b
Fixes: #32725
Releases: 1.1

History

#1 Updated by Gerrit Code Review over 3 years ago

  • Status changed from Accepted to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/7434

#2 Updated by Karsten Dambekalns over 3 years ago

  • Status changed from Under Review to Resolved
  • % Done changed from 0 to 100

#3 Updated by Karsten Dambekalns over 3 years ago

  • Target version changed from 1.1 to 1.1 beta 1

Also available in: Atom PDF