summary refs log tree commit diff
diff options
context:
space:
mode:
authorSean Quah <seanq@element.io>2022-03-16 15:10:41 +0000
committerSean Quah <seanq@element.io>2022-03-16 15:18:32 +0000
commitaba7072795f4ea46a8533124eba38b4a7607aaeb (patch)
tree796596ba9329d95d8916b017f9642b7d72b1510e
parentBump parameterized dependency to >= 0.7.4 (diff)
downloadsynapse-aba7072795f4ea46a8533124eba38b4a7607aaeb.tar.xz
Use pip to install olddeps, as suggested by dmr
-rwxr-xr-x.ci/scripts/test_old_deps.sh8
1 files changed, 5 insertions, 3 deletions
diff --git a/.ci/scripts/test_old_deps.sh b/.ci/scripts/test_old_deps.sh
index 419778fccc..9965d21dcf 100755
--- a/.ci/scripts/test_old_deps.sh
+++ b/.ci/scripts/test_old_deps.sh
@@ -67,6 +67,8 @@ python3 -c "$REMOVE_DEV_DEPENDENCIES"
 # Helpfully, pip doesn't indicate the error; it returns 0.
 # TODO: bump pyasn to >=0.4.6?
 pipx install poetry==1.1.12
-~/.local/bin/poetry lock
-~/.local/bin/poetry install -E "all test"
-~/.local/bin/poetry run trial -j2 tests
+~/.local/bin/poetry run pip install .[all,test]
+
+# Run the tests. Since we didn't install in editable mode, we have to invoke trial
+# with `python -m` so that the working directory contains `tests/`.
+~/.local/bin/poetry run python -m twisted.trial -j2 tests