skip Vulcain-based tests if the binary cannot be executed

This commit is contained in:
Christian Flothmann 2020-10-20 15:38:40 +02:00
parent c8c227f43f
commit fa265c2ee4

View File

@ -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);
}