skip Vulcain-based tests if the binary cannot be executed
This commit is contained in:
parent
c8c227f43f
commit
fa265c2ee4
@ -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