summary refs log tree commit diff
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2023-10-18 14:27:09 +0100
committerKegan Dougal <kegan@matrix.org>2023-10-18 14:27:09 +0100
commit162225f4e15f3109b5f5c4b0b240f47183ef53b3 (patch)
tree2351788e1c304f4793cb329d4043fe0b77d2a42b
parentRun trial/integration tests if .ci is modified. (#16512) (diff)
downloadsynapse-162225f4e15f3109b5f5c4b0b240f47183ef53b3.tar.xz
complement: enable dirty runs
-rwxr-xr-xscripts-dev/complement.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/scripts-dev/complement.sh b/scripts-dev/complement.sh
index 3e0cddb527..0cda8e00bb 100755
--- a/scripts-dev/complement.sh
+++ b/scripts-dev/complement.sh
@@ -219,6 +219,9 @@ test_packages="./tests/csapi ./tests ./tests/msc3874 ./tests/msc3890 ./tests/msc
 # All environment variables starting with PASS_ will be shared.
 # (The prefix is stripped off before reaching the container.)
 export COMPLEMENT_SHARE_ENV_PREFIX=PASS_
+# Enable dirty runs, so tests will reuse the same container where possible.
+# This significantly speeds up tests, but increases the possibility of test pollution.
+export COMPLEMENT_ENABLE_DIRTY_RUNS=1
 
 # It takes longer than 10m to run the whole suite.
 extra_test_args+=("-timeout=60m")