Skip to content

Fix acceptance tests for systemd PrivateTmp compatibility#376

Merged
nmburgan merged 1 commit intomainfrom
fix-acceptance-tmpdir
Apr 8, 2026
Merged

Fix acceptance tests for systemd PrivateTmp compatibility#376
nmburgan merged 1 commit intomainfrom
fix-acceptance-tmpdir

Conversation

@nmburgan
Copy link
Copy Markdown
Member

@nmburgan nmburgan commented Apr 7, 2026

Set TMPDIR on the primary in a pre-suite step so that mktemp creates
directories under /opt/puppetlabs/test-tmp instead of /tmp. With
PrivateTmp=true in the systemd service file (added in ezbake), the
server gets its own /tmp namespace and can't see directories created
there by beaker.

This supercedes the previous commit, which did only fixed a subset of tests.

Checklist

I have:

  • read the CONTRIBUTING.md document
  • read and accepted the Developer Certificate of Origin document and added a Signed-off-by annotation to each of my commits
  • tested this code
  • included documentation (including possible behaviour changes)
  • documented the code
  • added or modified regression test(s)
  • added or modified unit test(s)

@nmburgan
Copy link
Copy Markdown
Member Author

nmburgan commented Apr 7, 2026

@nmburgan nmburgan force-pushed the fix-acceptance-tmpdir branch 4 times, most recently from 53d517e to f12c330 Compare April 7, 2026 20:59
Set TMPDIR on the primary in a pre-suite step so that mktemp creates
directories under /opt/puppetlabs/test-tmp instead of /tmp. With
PrivateTmp=true in the systemd service file (added in ezbake), the
server gets its own /tmp namespace and can't see directories created
there by beaker.

Signed-off-by: nmburgan <13688219+nmburgan@users.noreply.github.com>
@nmburgan nmburgan force-pushed the fix-acceptance-tmpdir branch from f12c330 to c883114 Compare April 7, 2026 21:17
@nmburgan nmburgan merged commit dd279ad into main Apr 8, 2026
18 checks passed
@nmburgan nmburgan deleted the fix-acceptance-tmpdir branch April 8, 2026 01:48
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