commit:     daa15374ece245a944d72015bfe87d05a1d1189f
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Mon Feb 16 03:44:14 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 16 03:45:27 2026 +0000
URL:        https://gitweb.gentoo.org/proj/portage.git/commit/?id=daa15374

tests: stub PORTAGE_TRUST_HELPER

getuto needs to be run as root and otherwise may not be installed, so
stub it out as 'true'.

Signed-off-by: Sam James <sam <AT> gentoo.org>

 lib/portage/tests/emerge/test_baseline.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/portage/tests/emerge/test_baseline.py 
b/lib/portage/tests/emerge/test_baseline.py
index eb4a3372d0..09f7138a46 100644
--- a/lib/portage/tests/emerge/test_baseline.py
+++ b/lib/portage/tests/emerge/test_baseline.py
@@ -132,6 +132,7 @@ async def _async_test_baseline(playground, binhost, 
commands):
         "PORTAGE_PYTHON": portage._python_interpreter,
         "PORTAGE_REPOSITORIES": settings.repositories.config_string(),
         "PORTAGE_TMPDIR": portage_tmpdir,
+        "PORTAGE_TRUST_HELPER": "getuto",
         "PORTAGE_LOGDIR": portage_tmpdir,
         "PYTHONDONTWRITEBYTECODE": os.environ.get("PYTHONDONTWRITEBYTECODE", 
""),
         "PYTHONPATH": pythonpath,
@@ -160,7 +161,7 @@ async def _async_test_baseline(playground, binhost, 
commands):
     # Override things that may be unavailable, or may have portability
     # issues when running tests in exotic environments.
     #   prepstrip - bug #447810 (bash read builtin EINTR problem)
-    true_symlinks = ["find", "prepstrip", "sed", "scanelf"]
+    true_symlinks = ["find", "prepstrip", "sed", "scanelf", "getuto"]
     true_binary = find_binary("true")
     assert true_binary is not None, "true command not found"
 

Reply via email to