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.
--- a/spec/core_storagemanager_spec.lua Sat Jul 22 16:17:13 2023 +0200
+++ b/spec/core_storagemanager_spec.lua Sat Jul 22 16:20:36 2023 +0200
@@ -34,6 +34,11 @@
};
};
+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 ()