Changeset

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 13243:c5ccdfbbe9c1
children 13245:ffe4adbd2af9
files spec/core_storagemanager_spec.lua
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
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 ()