Skip to content

Commit

Permalink
chore: Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
stmh committed Nov 19, 2024
1 parent ea840f3 commit a2886b1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ShellProvider/LocalShellProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,11 @@ public function setup()
"",
$buffer
);
fwrite($type === Process::ERR ? STDERR : STDOUT, $buffer);
if ($this->output && $type === Process::OUT) {
$this->output->write($buffer);
} else {
fwrite($type === Process::ERR ? STDERR : STDOUT, $buffer);
}
});
if ($this->process->isTerminated() && !$this->process->isSuccessful()) {
throw new \RuntimeException(sprintf(
Expand Down

0 comments on commit a2886b1

Please sign in to comment.