aboutsummaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorKim Alvefur <zash@zash.se>2023-07-22 16:20:36 +0200
committerKim Alvefur <zash@zash.se>2023-07-22 16:20:36 +0200
commit8b013e947100887703b42e286a00917f8524841d (patch)
tree1f4fd20674c29f7da755f30a51bd7041138845c8 /spec
parent9ee8b4e502f58dc830ef1228f81affa3e26387c7 (diff)
downloadprosody-8b013e947100887703b42e286a00917f8524841d.tar.gz
prosody-8b013e947100887703b42e286a00917f8524841d.zip
tests: Add hack to test only a single storage driver
Fixes that LuaDBI being unavailable makes these produce nothing but endless stack overflows in luarocks.
Diffstat (limited to 'spec')
-rw-r--r--spec/core_storagemanager_spec.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/core_storagemanager_spec.lua b/spec/core_storagemanager_spec.lua
index de736822..fc3e0ad4 100644
--- a/spec/core_storagemanager_spec.lua
+++ b/spec/core_storagemanager_spec.lua
@@ -34,6 +34,11 @@ local configs = {
};
};
+local test_only_driver = os.getenv "PROSODY_TEST_ONLY_STORAGE";
+if test_only_driver then
+ configs = { [test_only_driver] = configs[test_only_driver] }
+end
+
local test_host = "storage-unit-tests.invalid";
describe("storagemanager", function ()