diff --git a/src/Behat/Context/LogsContext.php b/src/Behat/Context/LogsContext.php index 9b74ed7..66dbd8d 100644 --- a/src/Behat/Context/LogsContext.php +++ b/src/Behat/Context/LogsContext.php @@ -201,12 +201,12 @@ public static function writeTableLogs(array $grouped_logs) { */ public static function writeReport(array $grouped_logs) { // Add date to report. - $source_dir = dirname(static::$path); + $source_dir = static::$path; $date = date_create(); $time = date_format($date, "Y-m-d-H-i-s"); $source_file = $source_dir . '/dblog-report-' . $time . '.csv'; if (!file_exists($source_dir)) { - mkdir($source_dir, 0664, TRUE); + mkdir($source_dir, 0777, TRUE); } if (is_writable($source_dir)) { // Open CSV.