Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into CLI-1210
Browse files Browse the repository at this point in the history
  • Loading branch information
danepowell committed Nov 27, 2023
2 parents 62901d6 + ef27522 commit e99a5f3
Show file tree
Hide file tree
Showing 4 changed files with 95 additions and 75 deletions.
131 changes: 66 additions & 65 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/Command/Pull/PullCommandBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,7 @@ private function importDatabaseDump(string $localDumpFilepath, string $dbHost, s
}
else {
$this->io->warning('Install `pv` to see progress bar');
$command = "gunzip $localDumpFilepath | MYSQL_PWD=$dbPassword mysql --host=$dbHost --user=$dbUser $dbName";
$command = "gunzip -c $localDumpFilepath | MYSQL_PWD=$dbPassword mysql --host=$dbHost --user=$dbUser $dbName";
}

$process = $this->localMachineHelper->executeFromCmd($command, $outputCallback, NULL, ($this->output->getVerbosity() > OutputInterface::VERBOSITY_NORMAL));
Expand Down
5 changes: 3 additions & 2 deletions tests/phpunit/src/CommandTestBase.php
Original file line number Diff line number Diff line change
Expand Up @@ -358,11 +358,12 @@ protected function mockCreateMySqlDumpOnLocal(ObjectProphecy $localMachineHelper
}

protected function mockExecutePvExists(
ObjectProphecy $localMachineHelper
ObjectProphecy $localMachineHelper,
bool $pvExists = TRUE
): void {
$localMachineHelper
->commandExists('pv')
->willReturn(TRUE)
->willReturn($pvExists)
->shouldBeCalled();
}

Expand Down
Loading

0 comments on commit e99a5f3

Please sign in to comment.