mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-25 23:04:51 +02:00
test: Support ICINGAWEB_CONFIGDIR
during bootstrapping
This commit is contained in:
parent
4ccebb78b5
commit
f61d278110
@ -7,7 +7,7 @@ namespace Icinga\Test {
|
|||||||
|
|
||||||
$basePath = getenv('ICINGAWEB_BASEDIR') ?: realpath(dirname(__FILE__) . '/../..');
|
$basePath = getenv('ICINGAWEB_BASEDIR') ?: realpath(dirname(__FILE__) . '/../..');
|
||||||
$libraryPath = getenv('ICINGAWEB_ICINGA_LIB') ?: ($basePath . '/library/Icinga');
|
$libraryPath = getenv('ICINGAWEB_ICINGA_LIB') ?: ($basePath . '/library/Icinga');
|
||||||
$configPath = $basePath . '/test/config';
|
$configPath = getenv('ICINGAWEB_CONFIGDIR') ?: $basePath . '/test/config';
|
||||||
|
|
||||||
require $libraryPath . '/Application/Test.php';
|
require $libraryPath . '/Application/Test.php';
|
||||||
Test::start($basePath, $configPath);
|
Test::start($basePath, $configPath);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user