Skip to content

Commit d2ae761

Browse files
committed
MTA-3996: Create util for troubleshooting analysis with functional test execution
- stabilization
1 parent 9b20cca commit d2ae761

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

dev/tests/functional/lib/Magento/Mtf/Troubleshooting/StaticClassesGenerator.php

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ protected function configure()
5151
* @param OutputInterface $output
5252
* @return void
5353
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
54-
* @SuppressWarnings(PHPMD.ExitExpression)
5554
*/
5655
protected function execute(InputInterface $input, OutputInterface $output)
5756
{
@@ -60,9 +59,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
6059
['output' => $output]
6160
);
6261
$output->writeln("Generating static classes...");
63-
passthru('php generate.php', $exitCode);
62+
exec('php ' . MTF_BP . DIRECTORY_SEPARATOR . 'utils' . DIRECTORY_SEPARATOR . 'generate.php', $error, $exitCode);
6463
if ($exitCode) {
65-
exit($exitCode);
64+
$output->outputMessages(['error' => $error]);
6665
}
6766
$output->writeln('Static classes generation is finished.');
6867
}

0 commit comments

Comments
 (0)