teknoraver / rpms / rpm

Forked from rpms/rpm 3 months ago
Clone
Blob Blame History Raw
From e04b5d20a6d8c64dba7416edba8e435145a5d7d3 Mon Sep 17 00:00:00 2001
From: chantra <chantr4@gmail.com>
Date: Tue, 8 Feb 2022 17:12:09 -0800
Subject: [PATCH 16/30] [test] new runroot_plugins function to run command in
 fakeroot without having the plugins disabled

---
 tests/atlocal.in | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/tests/atlocal.in b/tests/atlocal.in
index c3189d327..c18637362 100644
--- a/tests/atlocal.in
+++ b/tests/atlocal.in
@@ -82,6 +82,14 @@ function runroot()
     )
 }
 
+function runroot_plugins()
+{
+    (unset RPM_CONFIGDIR RPM_POPTEXEC_PATH; cd ${RPMTEST} && \
+     MAGIC="/magic/magic" FAKECHROOT_BASE="${RPMTEST}" fakechroot "$@" --define "_buildhost testhost" --define "_topdir /build" --nouserns
+    )
+}
+
+
 function runroot_other()
 {
     (unset RPM_CONFIGDIR RPM_POPTEXEC_PATH; cd ${RPMTEST} && \
-- 
2.35.1