Skip to content

CLI-1225: The pull:database command fails silently if pv is not installed. #1989

CLI-1225: The pull:database command fails silently if pv is not installed.

CLI-1225: The pull:database command fails silently if pv is not installed. #1989

Re-run triggered November 27, 2023 17:36
Status Success
Total duration 1m 13s
Artifacts

mutation.yml

on: pull_request
Mutation Testing
56s
Mutation Testing
Fit to window
Zoom out
Zoom in

Annotations

1 warning
Mutation Testing: src/Command/Pull/PullCommandBase.php#L390
Escaped Mutant for Mutator "IfNegation": --- Original +++ New @@ @@ } $this->logger->debug("Importing {$localDumpFilepath} to MySQL on local machine"); $this->localMachineHelper->checkRequiredBinariesExist(['gunzip', 'mysql']); - if ($this->localMachineHelper->commandExists('pv')) { + if (!$this->localMachineHelper->commandExists('pv')) { $command = "pv {$localDumpFilepath} --bytes --rate | gunzip | MYSQL_PWD={$dbPassword} mysql --host={$dbHost} --user={$dbUser} {$dbName}"; } else { $this->io->warning('Install `pv` to see progress bar');