alexk / rpms / rpm

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