diff --git a/src/Process/ProcessFactory.php b/src/Process/ProcessFactory.php index 65b5cbe..7ccad76 100644 --- a/src/Process/ProcessFactory.php +++ b/src/Process/ProcessFactory.php @@ -81,6 +81,11 @@ public function createAProcessForACustomCommand( private function replaceParameters(string $cmd, string $suite, int $processNumber, int $currentProcessCounter): string { $commandToExecute = str_replace('{}', $suite, $cmd); + + $commandToExecute = str_replace('{filename}', $suite, $commandToExecute); + $cleanFilename = trim(preg_replace('/[^a-z0-9_-]/i', '_', $suite)); + $commandToExecute = str_replace('{clean_filename}', $cleanFilename, $commandToExecute); + $commandToExecute = str_replace('{p}', (string) $processNumber, $commandToExecute); $commandToExecute = str_replace('{n}', (string) $currentProcessCounter, $commandToExecute);