File tree Expand file tree Collapse file tree 2 files changed +14
-1
lines changed
src/Magento/FunctionalTestingFramework Expand file tree Collapse file tree 2 files changed +14
-1
lines changed Original file line number Diff line number Diff line change 7
7
8
8
namespace Magento \FunctionalTestingFramework \Console ;
9
9
10
+ use Magento \FunctionalTestingFramework \Util \Logger \LoggingUtil ;
10
11
use Symfony \Component \Console \Command \Command ;
11
12
use Symfony \Component \Console \Input \ArrayInput ;
12
13
use Symfony \Component \Filesystem \Filesystem ;
17
18
use Magento \FunctionalTestingFramework \Util \Env \EnvProcessor ;
18
19
use Symfony \Component \Yaml \Yaml ;
19
20
21
+ /**
22
+ * Class BuildProjectCommand
23
+ * @package Magento\FunctionalTestingFramework\Console
24
+ *
25
+ * @SuppressWarnings(PHPMD.CouplingBetweenObjects)
26
+ */
20
27
class BuildProjectCommand extends Command
21
28
{
22
29
const DEFAULT_YAML_INLINE_DEPTH = 10 ;
@@ -147,6 +154,12 @@ private function generateConfigFiles(OutputInterface $output)
147
154
self ::CREDENTIALS_FILE_PATH
148
155
);
149
156
157
+ // Remove and Create Log File
158
+ $ logPath = LoggingUtil::getInstance ()->getLoggingPath ();
159
+ $ fileSystem ->remove ($ logPath );
160
+ $ fileSystem ->touch ($ logPath );
161
+ $ fileSystem ->chmod ($ logPath , 0777 );
162
+
150
163
$ output ->writeln ('.credentials.example successfully applied. ' );
151
164
}
152
165
}
Original file line number Diff line number Diff line change @@ -75,7 +75,7 @@ public function getLogger($clazz)
75
75
*
76
76
* @return string
77
77
*/
78
- private function getLoggingPath ()
78
+ public function getLoggingPath ()
79
79
{
80
80
return TESTS_BP . DIRECTORY_SEPARATOR . "mftf.log " ;
81
81
}
You can’t perform that action at this time.
0 commit comments