Skip to content

Commit 7bdcafd

Browse files
committed
MQE-1257: MFTF Troubleshoot command
1 parent 7ac812b commit 7bdcafd

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/Magento/FunctionalTestingFramework/Console/TroubleShootCommand.php

+4-3
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,9 @@ protected function configure()
4949
*
5050
* @param InputInterface $input
5151
* @param OutputInterface $output
52-
* @return void
52+
* @return integer
5353
* @throws TestFrameworkException
54+
* @SuppressWarnings(PHPMD.UnusedFormalParameter)
5455
*/
5556
protected function execute(InputInterface $input, OutputInterface $output)
5657
{
@@ -82,9 +83,9 @@ protected function execute(InputInterface $input, OutputInterface $output)
8283
$cmdStatus = $cmdStatus && !$status ? false : $cmdStatus;
8384

8485
if ($cmdStatus) {
85-
exit(0);
86+
return 0;
8687
} else {
87-
exit(1);
88+
return 1;
8889
}
8990
}
9091

0 commit comments

Comments
 (0)