Skip to content

Commit 343246b

Browse files
committed
MQE-1024: Refactor Algorithm For Mftf Build Groups
- add new validation around time parameter (non-negative and non-zero values)
1 parent ae2fba1 commit 343246b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/Magento/FunctionalTestingFramework/Console/GenerateTestsCommand.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,11 @@ protected function execute(InputInterface $input, OutputInterface $output)
6161
throw new TestFrameworkException("JSON could not be parsed: " . json_last_error_msg());
6262
}
6363

64+
if ($config === 'parallel' && $time <= 0) {
65+
// stop execution if the user has given us an invalid argument for time argument during parallel generation
66+
throw new TestFrameworkException("time option cannot be less than or equal to 0");
67+
}
68+
6469
$testConfiguration = $this->createTestConfiguration($json, $tests, $force, $verbose);
6570

6671
// create our manifest file here

0 commit comments

Comments
 (0)