summary refs log tree commit diff
path: root/scripts-dev/complement.sh
diff options
context:
space:
mode:
authorMathieu Velten <mathieuv@matrix.org>2022-09-14 17:00:09 +0200
committerMathieu Velten <mathieuv@matrix.org>2022-09-14 17:18:35 +0200
commitf2352314925303c34ffee0d6961046eb53eb57d3 (patch)
tree2877ef93a34a791ba990ab785bf9bcb3d60f0141 /scripts-dev/complement.sh
parentFix bug in device list caching when remote users leave rooms (#13749) (diff)
downloadsynapse-mv/complement-pg-data.tar.xz
complement: move PG data outside of the container storage github/mv/complement-pg-data mv/complement-pg-data
Signed-off-by: Mathieu Velten <mathieuv@matrix.org>
Diffstat (limited to 'scripts-dev/complement.sh')
-rwxr-xr-xscripts-dev/complement.sh9
1 files changed, 9 insertions, 0 deletions
diff --git a/scripts-dev/complement.sh b/scripts-dev/complement.sh

index eab23f18f1..857748d7c2 100755 --- a/scripts-dev/complement.sh +++ b/scripts-dev/complement.sh
@@ -122,7 +122,14 @@ if [ -n "$skip_complement_run" ]; then exit fi +PG_DATA_FOLDER=/tmp/postgres-data + +rm -rf $PG_DATA_FOLDER +mkdir -p $PG_DATA_FOLDER +chmod 777 $PG_DATA_FOLDER + export COMPLEMENT_BASE_IMAGE=complement-synapse +export COMPLEMENT_HOST_MOUNTS=$PG_DATA_FOLDER:/var/lib/postgresql/data extra_test_args=() @@ -178,3 +185,5 @@ echo "Images built; running complement" cd "$COMPLEMENT_DIR" go test -v -tags $test_tags -count=1 "${extra_test_args[@]}" "$@" ./tests/... + +rm -rf $PG_DATA_FOLDER