Skip to content

Commit dde8ba5

Browse files
committed
Serialize installation tests
Due to the way installation of the package works (based on setup.py), it creates temporary content in a build/ directory at the root of the repository. This sometimes causes installation to fail if another installation is happening at the same time, which is problematic for the client/server installation tests. Until we modernize to a proper pyproject.toml, serialize the installation tests to ensure they don't fail spuriously.
1 parent 595f058 commit dde8ba5

File tree

3 files changed

+17
-16
lines changed

3 files changed

+17
-16
lines changed

tests/utils/installation-client.shtest

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/utils/installation-server.shtest

Lines changed: 0 additions & 8 deletions
This file was deleted.

tests/utils/installation.shtest

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Check that installation using the client requirements works properly.
2+
#
3+
# RUN: rm -rf %t.venv
4+
# RUN: python -m venv %t.venv
5+
# RUN: cd %{src_root}
6+
# RUN: %t.venv/bin/python -m pip install -r requirements.client.txt
7+
# RUN: rm -rf %t.installation
8+
# RUN: %t.venv/bin/lnt create %t.installation
9+
10+
# Check that installation using the server requirements works properly.
11+
#
12+
# RUN: rm -rf %t.venv
13+
# RUN: python -m venv %t.venv
14+
# RUN: cd %{src_root}
15+
# RUN: %t.venv/bin/python -m pip install -r requirements.server.txt
16+
# RUN: rm -rf %t.installation
17+
# RUN: %t.venv/bin/lnt create %t.installation

0 commit comments

Comments
 (0)