[BUGFIX] Do not create folder in wrong directory 83/43283/3
authorHelmut Hummel <helmut.hummel@typo3.org>
Sun, 13 Sep 2015 21:50:51 +0000 (23:50 +0200)
committerNicole Cordes <typo3@cordes.co>
Sun, 13 Sep 2015 23:02:34 +0000 (01:02 +0200)
commited6481a97b84539c89d61a77621ed67e8012e53c
treeb6390513a37dd27f4cfa4841bf2a2545b556674a
parent6db1c109ff70d946ca0096f17eaf0761ea2c6a6e
[BUGFIX] Do not create folder in wrong directory

The testing bootstrap creates several folder so that
the tests can run properly. However this is also done
if the tests are executed from a wrong directory
which makes the tests fail. The folders are created anyways.

To fix this we check for an essential file right after the
directory path is determined.

Resolves: #69767
Releases: master
Change-Id: Ic85a12bd1f682b4e45e39031a1b3bda69f0afcdc
Reviewed-on: http://review.typo3.org/43283
Reviewed-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Tested-by: Anja Leichsenring <aleichsenring@ab-softlab.de>
Reviewed-by: Nicole Cordes <typo3@cordes.co>
Tested-by: Nicole Cordes <typo3@cordes.co>
typo3/sysext/core/Build/FunctionalTestsBootstrap.php
typo3/sysext/core/Build/UnitTestsBootstrap.php