minor #38649 [HttpClient] skip Vulcain-based tests if the binary cannot be executed (xabbuh)
This PR was merged into the 4.4 branch.
Discussion
----------
[HttpClient] skip Vulcain-based tests if the binary cannot be executed
| Q | A
| ------------- | ---
| Branch? | 4.4
| Bug fix? | no
| New feature? | no
| Deprecations? | no
| Tickets |
| License | MIT
| Doc PR |
Commits
-------
fa265c2ee4
skip Vulcain-based tests if the binary cannot be executed
This commit is contained in:
commit
e731e37109
@ -169,6 +169,14 @@ class CurlHttpClientTest extends HttpClientTestCase
|
||||
sleep('\\' === \DIRECTORY_SEPARATOR ? 10 : 1);
|
||||
|
||||
if (!$process->isRunning()) {
|
||||
if ('\\' !== \DIRECTORY_SEPARATOR && 127 === $process->getExitCode()) {
|
||||
$this->markTestSkipped('vulcain binary is missing');
|
||||
}
|
||||
|
||||
if ('\\' !== \DIRECTORY_SEPARATOR && 126 === $process->getExitCode()) {
|
||||
$this->markTestSkipped('vulcain binary is not executable');
|
||||
}
|
||||
|
||||
throw new ProcessFailedException($process);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user