Skip to content

tests: rstest fixtures for the NAR tree and the iets home - #232

Merged
Mic92 merged 2 commits into
rstestfrom
rstest-fixtures
Oct 22, 2026
Merged

Mic92 merged 2 commits into
rstestfrom
rstest-fixtures

Conversation

@Mic92

@Mic92 Mic92 commented Oct 22, 2026

Copy link
Copy Markdown
Member

Stacked on #231.

  • tree: Tree: the NAR fixture tree in its own TempDir, without pid+tag dirs.
  • bin: Iets: iets with a TempDir home per test, without the thread-name lookup.

Mic92 added 2 commits October 23, 2026 00:23
fixture_tree() built its tree under the shared temp dir, named by pid
and a tag every caller had to keep unique, and never removed it. As an
rstest fixture each test gets its own TempDir, dropped at the end.

Change-Id: Ia860f1d3fea5c648833551e0e99ed6e6118ad9e8
hermetic::iets() picked the home from the thread name, so a run from a
thread the test spawned got a shared pid-named home, and homes were left
in the target dir. The bin fixture owns a TempDir home for the test.
The e2e Store and the cache_semantics Work own one too.

Change-Id: I7e45e9a1341f0db401f365a8bca8885286e25bb9
@Mic92
Mic92 merged commit ebf8c24 into rstest Oct 22, 2026
2 of 4 checks passed
@Mic92
Mic92 deleted the rstest-fixtures branch October 22, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant