unit-tests: Add a TESTS_PLUGINS environment variable

This is often more convenient than specifying plugins in a configuration file.
This commit is contained in:
Martin Willi
2015-04-15 14:38:42 +02:00
parent 26c215e818
commit 162252aca9
2 changed files with 6 additions and 1 deletions
+2 -1
View File
@@ -37,7 +37,8 @@ static bool test_runner_init(bool init)
{
char *plugins, *plugindir;
plugins = lib->settings->get_str(lib->settings,
plugins = getenv("TESTS_PLUGINS") ?:
lib->settings->get_str(lib->settings,
"tests.load", PLUGINS);
plugindir = lib->settings->get_str(lib->settings,
"tests.plugindir", PLUGINDIR);