Skip to content

Commit 8f9d106

Browse files
committed
fixed errorlog write permission issue
1 parent 459efda commit 8f9d106

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Tests/PersistUnit/ModelTest.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,10 @@ public function setUp(){
168168
parent::setUp();
169169

170170
$errorlogFile = self::$errorLogDir.'/'. md5($this->getName());
171-
171+
// create the error log file , and make it writable by www-data and test executor
172+
file_put_contents($errorlogFile, '');
173+
chmod($errorlogFile, 0777);
174+
172175
$traces = [];
173176
if(self::$enablePersistenceTrace){$traces['Persistence'] = $errorlogFile;}
174177
if(self::$enableApplicationTrace){$traces['Application'] = $errorlogFile;}

0 commit comments

Comments
 (0)