CLI-1330: TypeError for SSH commands on Node environments #2289
mutation.yml
on: pull_request
Mutation Testing
15m 51s
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());
}
|