mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
fix: Allow unit tests without a sql server (#6398)
* fix: Allow unit tests without a sql server * Fix db connection in bootstrap.php Mark tests as skipped Make sure the sql queries in bootstrap.php have run
This commit is contained in:
committed by
Neil Lathwood
parent
3884a3c2f7
commit
06add77685
@@ -37,6 +37,8 @@ if (getenv('DBTEST')) {
|
||||
if (!is_file($install_dir . '/config.php')) {
|
||||
exec("cp $install_dir/tests/config/config.test.php $install_dir/config.php");
|
||||
}
|
||||
} else {
|
||||
$init_modules[] = 'nodb';
|
||||
}
|
||||
|
||||
require $install_dir . '/includes/init.php';
|
||||
|
Reference in New Issue
Block a user