Add extcmd_test binary to gitignore and skip tests when its not available
This commit is contained in:
parent
62928c48b0
commit
54f9ecb62f
|
@ -10,7 +10,6 @@
|
|||
!.gitkeep
|
||||
|
||||
build/
|
||||
test/js/npm-debug.log
|
||||
|
||||
# ./configure output
|
||||
config.log
|
||||
|
@ -20,10 +19,9 @@ config.status
|
|||
Makefile
|
||||
|
||||
# cmd tester
|
||||
test/php/bin/extcmd_test
|
||||
modules/test/bin/extcmd_test
|
||||
|
||||
# misc test output
|
||||
test/frontend/static/public
|
||||
test/php/library/Icinga/Protocol/Statusdat/.cache
|
||||
|
||||
# Generated API documentation
|
||||
|
|
|
@ -30,6 +30,14 @@ if (!defined('EXTCMD_TEST_BIN')) {
|
|||
*/
|
||||
class CommandPipeTest extends BaseTestCase
|
||||
{
|
||||
public function setUp()
|
||||
{
|
||||
parent::setUp();
|
||||
if (! file_exists(EXTCMD_TEST_BIN)) {
|
||||
$this->markTestSkipped('Cannot find "' . EXTCMD_TEST_BIN . '"');
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Return the path of the test pipe used in these tests
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue