functional2: use test-home for files #848

Open
opened 2025-06-08 18:49:13 +00:00 by commentatorforall · 1 comment

Currently, the files fixture creates files directly within the tmp_path directory.
parallel to that, the functional test-suit moves files to the tmp_path/test-home directory.
Both test-suits set the HOME environment variable to tmp_path/test-home.

This discrepancy may result in flakyness, difficult to debug failures and other inconsistencies when migrating tests from the functional test-suit

Describe the solution you'd like

make the files fixture automatically create and use the test-home folder and also return said path instead of the current tmp_path propagation.

## Is your feature request related to a problem? Please describe. Currently, the `files` fixture creates files directly within the `tmp_path` directory. parallel to that, the `functional` test-suit moves files to the `tmp_path/test-home` directory. Both test-suits set the `HOME` environment variable to `tmp_path/test-home`. This discrepancy may result in flakyness, difficult to debug failures and other inconsistencies when migrating tests from the `functional` test-suit ## Describe the solution you'd like make the `files` fixture automatically create and use the `test-home` folder and also return said path instead of the current `tmp_path` propagation.
helle self-assigned this 2025-06-08 21:17:04 +00:00
Member

This issue was mentioned on Gerrit on the following CLs:

  • commit message in cl/3333 ("tests/functional2: Make Command Environment actually declarative")
<!-- GERRIT_LINKBOT: {"cls": [{"backlink": "https://gerrit.lix.systems/c/lix/+/3333", "number": 3333, "kind": "commit message"}], "cl_meta": {"3333": {"change_title": "tests/functional2: Make Command Environment actually declarative"}}} --> This issue was mentioned on Gerrit on the following CLs: * commit message in [cl/3333](https://gerrit.lix.systems/c/lix/+/3333) ("tests/functional2: Make Command Environment actually declarative")
Sign in to join this conversation.
No milestone
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: lix-project/lix#848
No description provided.