mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 06:44:33 +02:00
Add extcmd_test binary to gitignore and skip tests when its not available
This commit is contained in:
parent
62928c48b0
commit
54f9ecb62f
4
.gitignore
vendored
4
.gitignore
vendored
@ -10,7 +10,6 @@
|
|||||||
!.gitkeep
|
!.gitkeep
|
||||||
|
|
||||||
build/
|
build/
|
||||||
test/js/npm-debug.log
|
|
||||||
|
|
||||||
# ./configure output
|
# ./configure output
|
||||||
config.log
|
config.log
|
||||||
@ -20,10 +19,9 @@ config.status
|
|||||||
Makefile
|
Makefile
|
||||||
|
|
||||||
# cmd tester
|
# cmd tester
|
||||||
test/php/bin/extcmd_test
|
modules/test/bin/extcmd_test
|
||||||
|
|
||||||
# misc test output
|
# misc test output
|
||||||
test/frontend/static/public
|
|
||||||
test/php/library/Icinga/Protocol/Statusdat/.cache
|
test/php/library/Icinga/Protocol/Statusdat/.cache
|
||||||
|
|
||||||
# Generated API documentation
|
# Generated API documentation
|
||||||
|
@ -30,6 +30,14 @@ if (!defined('EXTCMD_TEST_BIN')) {
|
|||||||
*/
|
*/
|
||||||
class CommandPipeTest extends BaseTestCase
|
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
|
* Return the path of the test pipe used in these tests
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user