Skip to content

Commit 97e682d

Browse files
author
Global
committed
ACQE-4040 | creare dir
1 parent 1198b27 commit 97e682d

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/Magento/FunctionalTestingFramework/Console/GenerateTestsCommand.php

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,6 +564,10 @@ private function array2Json(array $array)
564564
if (isset($_ENV['MAGENTO_BP'])) {
565565
$testDependencyFileLocation = self::TEST_DEPENDENCY_FILE_LOCATION_STANDALONE;
566566
}
567+
$testDependencyFileLocationDir = dirname($testDependencyFileLocation);
568+
if (!is_dir($testDependencyFileLocationDir)) {
569+
mkdir($testDependencyFileLocationDir, 0777, true);
570+
}
567571
$file = fopen($testDependencyFileLocation, 'w');
568572
$json = json_encode($array, JSON_UNESCAPED_SLASHES | JSON_PRETTY_PRINT);
569573
fwrite($file, $json);

0 commit comments

Comments
 (0)