diff options
author | Andrej Shadura <andrewsh@debian.org> | 2022-01-25 17:19:30 +0100 |
---|---|---|
committer | Andrej Shadura <andrewsh@debian.org> | 2022-01-25 17:19:30 +0100 |
commit | a3314bc3fb01a561884a7f1cfe8cb8161e582655 (patch) | |
tree | ad313f9f848e964d9028260931dcf64177c23ec0 /tests/utils.py | |
parent | 0e0f67024b1d67178e063ffd2a86cfb78ab1e08a (diff) | |
parent | 0027c02b907486b437772b1cdecbea14d18597d9 (diff) |
Update upstream source from tag 'upstream/1.51.0'
Update to upstream version '1.51.0'
with Debian dir 20ec082880941c65b5b91d008de1a402fcdf2fe1
Diffstat (limited to 'tests/utils.py')
-rw-r--r-- | tests/utils.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/utils.py b/tests/utils.py index 6d013e85..c06fc320 100644 --- a/tests/utils.py +++ b/tests/utils.py @@ -42,6 +42,10 @@ POSTGRES_HOST = os.environ.get("SYNAPSE_POSTGRES_HOST", None) POSTGRES_PASSWORD = os.environ.get("SYNAPSE_POSTGRES_PASSWORD", None) POSTGRES_BASE_DB = "_synapse_unit_tests_base_%s" % (os.getpid(),) +# When debugging a specific test, it's occasionally useful to write the +# DB to disk and query it with the sqlite CLI. +SQLITE_PERSIST_DB = os.environ.get("SYNAPSE_TEST_PERSIST_SQLITE_DB") is not None + # the dbname we will connect to in order to create the base database. POSTGRES_DBNAME_FOR_INITIAL_CREATE = "postgres" |