Skip to content

Commit 3ff6d16

Browse files
authored
MQE-1038: bin/mftf commands which exceed 60 seconds timeout
- added idletimeout/timeout to all $process calls in bin/mftf commands
1 parent 371f352 commit 3ff6d16

File tree

3 files changed

+6
-1
lines changed

3 files changed

+6
-1
lines changed

src/Magento/FunctionalTestingFramework/Console/BuildProjectCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
7676
$codeceptBuildCommand = realpath(PROJECT_ROOT . '/vendor/bin/codecept') . ' build';
7777
$process = new Process($codeceptBuildCommand);
7878
$process->setWorkingDirectory(TESTS_BP);
79+
$process->setIdleTimeout(600);
80+
$process->setTimeout(0);
7981
$process->run(
8082
function ($type, $buffer) use ($output) {
8183
if ($output->isVerbose()) {

src/Magento/FunctionalTestingFramework/Console/RunTestCommand.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -63,11 +63,12 @@ protected function execute(InputInterface $input, OutputInterface $output)
6363

6464
$process = new Process($codeceptionCommand);
6565
$process->setWorkingDirectory(TESTS_BP);
66+
$process->setIdleTimeout(600);
67+
$process->setTimeout(0);
6668
$process->run(
6769
function ($type, $buffer) use ($output) {
6870
$output->write($buffer);
6971
}
7072
);
7173
}
72-
7374
}

src/Magento/FunctionalTestingFramework/Console/RunTestGroupCommand.php

+2
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ protected function execute(InputInterface $input, OutputInterface $output)
6868

6969
$process = new Process($codeceptionCommand);
7070
$process->setWorkingDirectory(TESTS_BP);
71+
$process->setIdleTimeout(600);
72+
$process->setTimeout(0);
7173
$process->run(
7274
function ($type, $buffer) use ($output) {
7375
$output->write($buffer);

0 commit comments

Comments
 (0)