Skip to content

Commit 86fe855

Browse files
committed
MQE-1147: make mftf.log visible on server
- added to build:project command.
1 parent 106aaba commit 86fe855

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

src/Magento/FunctionalTestingFramework/Console/BuildProjectCommand.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77

88
namespace Magento\FunctionalTestingFramework\Console;
99

10+
use Magento\FunctionalTestingFramework\Util\Logger\LoggingUtil;
11+
use Magento\Invitation\Model\Logging;
1012
use Symfony\Component\Console\Command\Command;
1113
use Symfony\Component\Console\Input\ArrayInput;
1214
use Symfony\Component\Filesystem\Filesystem;
@@ -147,6 +149,12 @@ private function generateConfigFiles(OutputInterface $output)
147149
self::CREDENTIALS_FILE_PATH
148150
);
149151

152+
// Remove and Create Log File
153+
$logPath = LoggingUtil::getInstance()->getLoggingPath();
154+
$fileSystem->remove($logPath);
155+
$fileSystem->touch($logPath);
156+
$fileSystem->chmod($logPath, 0777);
157+
150158
$output->writeln('.credentials.example successfully applied.');
151159
}
152160
}

src/Magento/FunctionalTestingFramework/Util/Logger/LoggingUtil.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function getLogger($clazz)
7575
*
7676
* @return string
7777
*/
78-
private function getLoggingPath()
78+
public function getLoggingPath()
7979
{
8080
return TESTS_BP . DIRECTORY_SEPARATOR . "mftf.log";
8181
}

0 commit comments

Comments
 (0)