Skip to content

Commit

Permalink
Move test-suite build config out of root's ~/.rpmmacros
Browse files Browse the repository at this point in the history
The second step to fixing #3521
  • Loading branch information
pmatilai authored and ffesti committed Jan 20, 2025
1 parent c17cc69 commit ecef501
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
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
# common macro config in the test-environment
%_buildhost testhost
%_topdir %{getenv:RPMTEST}/build
%_tmppath %{getenv:RPMTEST}/tmp
5 changes: 3 additions & 2 deletions tests/mktree.common
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,9 @@ make_install()
echo "%_dbpath $dbpath" > $DESTDIR/@CMAKE_INSTALL_FULL_SYSCONFDIR@/rpm/macros.db
rpmdb --dbpath $DESTDIR/$dbpath --initdb

# append in case Dockerfile put something in there already
cat @CMAKE_CURRENT_SOURCE_DIR@/data/macros.testenv >> $DESTDIR/root/.rpmmacros
# system-wide config to match our test environment
cp @CMAKE_CURRENT_SOURCE_DIR@/data/macros.testenv $DESTDIR/@CMAKE_INSTALL_FULL_SYSCONFDIR@/rpm/

# gpg-connect-agent is very, very unhappy if this doesn't exist
mkdir -p $DESTDIR/root/.gnupg
chmod 700 $DESTDIR/root/.gnupg
Expand Down

0 comments on commit ecef501

Please sign in to comment.