Skip to content

CLI-1330: TypeError for SSH commands on Node environments #2290

CLI-1330: TypeError for SSH commands on Node environments

CLI-1330: TypeError for SSH commands on Node environments #2290

Triggered via pull request May 7, 2024 20:01
Status Failure
Total duration 6m 36s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
6m 28s
Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

1 error and 3 warnings
Mutation Testing
Process completed with exit code 1.
Mutation Testing: src/Helpers/SshHelper.php#L34
Escaped Mutant for Mutator "TrueValue": --- Original +++ New @@ @@ * * @param int|null $timeout */ - public function executeCommand(string $sshUrl, array $commandArgs, bool $printOutput = TRUE, int $timeout = NULL) : Process + public function executeCommand(string $sshUrl, array $commandArgs, bool $printOutput = false, int $timeout = NULL) : Process { $commandSummary = $this->getCommandSummary($commandArgs); // Remove site_env arg.
Mutation Testing: src/Helpers/SshHelper.php#L41
Escaped Mutant for Mutator "ArrayItemRemoval": --- Original +++ New @@ @@ // Remove site_env arg. unset($commandArgs['alias']); $process = $this->sendCommand($sshUrl, $commandArgs, $printOutput, $timeout); - $this->logger->debug('Command: {command} [Exit: {exit}]', ['command' => $commandSummary, 'env' => $sshUrl, 'exit' => $process->getExitCode()]); + $this->logger->debug('Command: {command} [Exit: {exit}]', ['env' => $sshUrl, 'exit' => $process->getExitCode()]); if (!$process->isSuccessful() && $process->getExitCode() === 255) { throw new AcquiaCliException($process->getOutput() . $process->getErrorOutput()); }
Mutation Testing: src/Helpers/SshHelper.php#L41
Escaped Mutant for Mutator "MethodCallRemoval": --- Original +++ New @@ @@ // Remove site_env arg. unset($commandArgs['alias']); $process = $this->sendCommand($sshUrl, $commandArgs, $printOutput, $timeout); - $this->logger->debug('Command: {command} [Exit: {exit}]', ['command' => $commandSummary, 'env' => $sshUrl, 'exit' => $process->getExitCode()]); + if (!$process->isSuccessful() && $process->getExitCode() === 255) { throw new AcquiaCliException($process->getOutput() . $process->getErrorOutput()); }