# HG changeset patch # User Kim Alvefur # Date 1625990950 -7200 # Node ID 7417e61dfbe1c2b3d1959b692270b3570abfb019 # Parent b92a3e166ac3092078a65a7c2a6dd4ae50d869cc scansion tests: Allow specifying network settings via environment variable Allows testing e.g. opportunistic writes or other settings easily in CI or otherwise without editing the config file. make integration-test PROSODY_NETWORK_SETTINGS='{"opportunistic_writes":true}' diff -r b92a3e166ac3 -r 7417e61dfbe1 spec/scansion/prosody.cfg.lua --- a/spec/scansion/prosody.cfg.lua Sun Jul 11 10:09:07 2021 +0200 +++ b/spec/scansion/prosody.cfg.lua Sun Jul 11 10:09:10 2021 +0200 @@ -14,8 +14,7 @@ admins = { "admin@localhost" } network_backend = ENV_PROSODY_NETWORK_BACKEND or "epoll" -network_settings = { -} +network_settings = require"util.json".decode(ENV_PROSODY_NETWORK_SETTINGS or "{}") modules_enabled = { -- Generally required