Fix perforce arg not being escaped correctly
parent
3c37a67c0c
commit
3773f77527
|
@ -342,7 +342,7 @@ class Perforce
|
|||
public function connectClient(): void
|
||||
{
|
||||
$p4CreateClientCommand = $this->generateP4Command(
|
||||
'client -i < ' . str_replace(" ", "\\ ", $this->getP4ClientSpec())
|
||||
'client -i < ' . ProcessExecutor::escape($this->getP4ClientSpec())
|
||||
);
|
||||
$this->executeCommand($p4CreateClientCommand);
|
||||
}
|
||||
|
|
|
@ -328,7 +328,7 @@ class PerforceTest extends TestCase
|
|||
public function testConnectClient(): void
|
||||
{
|
||||
$this->processExecutor->expects(
|
||||
['p4 -u user -c composer_perforce_TEST_depot -p port client -i < path/composer_perforce_TEST_depot.p4.spec'],
|
||||
['p4 -u user -c composer_perforce_TEST_depot -p port client -i < '.ProcessExecutor::escape('path/composer_perforce_TEST_depot.p4.spec')],
|
||||
true
|
||||
);
|
||||
|
||||
|
|
Loading…
Reference in New Issue