Skip to content

Commit

Permalink
Always use /var/tmp for rpm's %_tmppath in test-suite
Browse files Browse the repository at this point in the history
This is a writable path even on otherwise read-only image because, well,
things need a place to write temporaries to.
  • Loading branch information
pmatilai committed Nov 18, 2024
1 parent 3989f57 commit fe49d95
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions tests/atlocal.in
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,7 @@ rundebug()

runroot()
{
snapshot exec "$@" \
--define "_tmppath /var/tmp"
snapshot exec "$@"
}

runroot_other()
Expand Down
2 changes: 1 addition & 1 deletion tests/data/macros.testenv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# root's macro config in the test-environment
%_buildhost testhost
%_topdir %{getenv:RPMTEST}/build
%_tmppath %{getenv:RPMTEST}/tmp
%_tmppath /var/tmp

0 comments on commit fe49d95

Please sign in to comment.