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 rpm-software-management#3521
  • Loading branch information
pmatilai committed Jan 16, 2025
1 parent 39578b4 commit f76c086
Show file tree
Hide file tree
Showing 2 changed files with 3 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
4 changes: 2 additions & 2 deletions tests/mktree.common
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ make_install()
mkdir -p $DESTDIR/build
ln -sf ../data/SOURCES $DESTDIR/build/

# 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 f76c086

Please sign in to comment.