# HG changeset patch # User Kim Alvefur # Date 1690035636 -7200 # Node ID 2902c54f45a6c84cddb587d8fa9eaf9049db6090 # Parent c5ccdfbbe9c1d7f681dc078d8a72d90237800ce8 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. diff -r c5ccdfbbe9c1 -r 2902c54f45a6 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 ()