alexk / rpms / rpm

Forked from rpms/rpm 2 years ago
Clone
2f13d7
From e04b5d20a6d8c64dba7416edba8e435145a5d7d3 Mon Sep 17 00:00:00 2001
2f13d7
From: chantra <chantr4@gmail.com>
2f13d7
Date: Tue, 8 Feb 2022 17:12:09 -0800
2f13d7
Subject: [PATCH 16/30] [test] new runroot_plugins function to run command in
2f13d7
 fakeroot without having the plugins disabled
2f13d7
2f13d7
---
2f13d7
 tests/atlocal.in | 9 +++++++++
2f13d7
 1 file changed, 9 insertions(+)
2f13d7
2f13d7
diff --git a/tests/atlocal.in b/tests/atlocal.in
2f13d7
index c3189d327..c18637362 100644
2f13d7
--- a/tests/atlocal.in
2f13d7
+++ b/tests/atlocal.in
2f13d7
@@ -82,6 +82,15 @@ function runroot()
2f13d7
     )
2f13d7
 }
2f13d7
 
2f13d7
+function runroot_plugins()
2f13d7
+{
2f13d7
+    setup_env
2f13d7
+    (unset RPM_CONFIGDIR RPM_POPTEXEC_PATH; cd ${RPMTEST} && \
2f13d7
+     MAGIC="/magic/magic" FAKECHROOT_BASE="${RPMTEST}" fakechroot "$@" --define "_buildhost testhost" --define "_topdir /build" --nouserns
2f13d7
+    )
2f13d7
+}
2f13d7
+
2f13d7
+
2f13d7
 function runroot_other()
2f13d7
 {
2f13d7
     setup_env
2f13d7
-- 
2f13d7
2.35.1
2f13d7