Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
ci: Remove trailing new lines
Signed-off-by: Joas Schilling <[email protected]>
  • Loading branch information
nickvergessen committed Aug 29, 2024
commit 394ee2dba3b969846aaa4e6b67214fe31b7e6404
5 changes: 4 additions & 1 deletion tests/Integration/features/bootstrap/CommandLineTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,10 @@ public function runOcc($args = [], $env = []) {
*/
public function invokingTheCommand(string $cmd, ?\Behat\Gherkin\Node\TableNode $table = null) {
if ($cmd !== 'table') {
$cmd = str_replace('{LAST_COMMAND_OUTPUT}', $this->lastStdOut, $cmd);
if (str_contains($cmd, '{LAST_COMMAND_OUTPUT}')) {
echo 'Replacing {LAST_COMMAND_OUTPUT} with "' . trim($this->lastStdOut) . '"';
}
$cmd = str_replace('{LAST_COMMAND_OUTPUT}', trim($this->lastStdOut), $cmd);
$args = explode(' ', $cmd);
} else {
$args = [];
Expand Down