tests: Add hack to test only a single storage driver
authorKim Alvefur <zash@zash.se>
Sat, 22 Jul 2023 16:20:36 +0200
changeset 13248 2902c54f45a6
parent 13247 c5ccdfbbe9c1
child 13249 ffe4adbd2af9
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.
spec/core_storagemanager_spec.lua
--- 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 ()