Mercurial > prosody-hg
diff spec/core_storagemanager_spec.lua @ 13244:2902c54f45a6
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.
| author | Kim Alvefur <zash@zash.se> |
|---|---|
| date | Sat, 22 Jul 2023 16:20:36 +0200 |
| parents | c5ccdfbbe9c1 |
| children | 6877786d73d7 |
line wrap: on
line diff
--- 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 ()
