CLI-1330: TypeError for SSH commands on Node environments #2289
Annotations
1 error and 3 warnings
Run Infection for added files only
Process completed with exit code 1.
|
Run Infection for added files only:
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.
|
Run Infection for added files only:
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());
}
|
Run Infection for added files only:
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());
}
|
Loading