Skip to content

tests: use the platform temp dir instead of hardcoded /tmp - #633

Merged
bilelmoussaoui merged 1 commit into
linux-credentials:mainfrom
mptfire:fix/test-tmpdir
Nov 3, 2026
Merged

bilelmoussaoui merged 1 commit into
linux-credentials:mainfrom
mptfire:fix/test-tmpdir

Conversation

@mptfire

@mptfire mptfire commented Nov 3, 2026

Copy link
Copy Markdown

Fixes keyfile_dump_load failing with EACCES on systems without a writable /tmp (e.g. Android/Termux app sandboxes), and removes a fixed filename that two parallel test runs would collide on.

  • uses std::env::temp_dir() so the test respects TMPDIR
  • unique filename per run

Verified on aarch64/Android: client suite 31/31 green with this patch (previously 30 pass + 1 EACCES failure).

/tmp does not exist on Android/Termux, so keyfile_dump_load failed with
EACCES. std::env::temp_dir() respects the platform; fixed filename
replaced to avoid parallel-run collisions.
@bilelmoussaoui
bilelmoussaoui merged commit 0bcd627 into linux-credentials:main Nov 3, 2026
16 of 17 checks passed
@bilelmoussaoui

Copy link
Copy Markdown
Collaborator

Thanks

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown

📊 Code Coverage Report

Metric Value
Current PR Coverage 83.60%
Main Branch Coverage 83.54%
Coverage Change 📈 +0.06%

Coverage report generated by cargo-tarpaulin

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.

3 participants