Issue #3192365 by Symbioquine, tbradbury, mxr576, alexpott, longwave: Race Condition in 'public://simpletest' mkdir Call
parent
15e1c6582f
commit
ac01e62552
|
@ -87,8 +87,8 @@ class TestRunnerKernel extends DrupalKernel {
|
|||
|
||||
// Create the build/artifacts directory if necessary.
|
||||
include_once $this->getAppRoot() . '/core/includes/file.inc';
|
||||
if (!is_dir('public://simpletest')) {
|
||||
mkdir('public://simpletest', 0777, TRUE);
|
||||
if (!is_dir('public://simpletest') && !@mkdir('public://simpletest', 0777, TRUE) && !is_dir('public://simpletest')) {
|
||||
throw new \RuntimeException('Unable to create directory: public://simpletest');
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue