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

tests: disable verify-signature for xpak

The old xpak format doesn't support signatures so all the tests involving
it w/ --getbinpkg fail unless we invert the default.

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

 lib/portage/tests/emerge/conftest.py | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/lib/portage/tests/emerge/conftest.py 
b/lib/portage/tests/emerge/conftest.py
index 619e0ec005..24a95970ef 100644
--- a/lib/portage/tests/emerge/conftest.py
+++ b/lib/portage/tests/emerge/conftest.py
@@ -800,6 +800,9 @@ def _generate_all_baseline_commands(playground, binhost):
     with open(binrepos_conf_file, "w") as f:
         f.write("[test-binhost]\n")
         f.write(f"sync-uri = {binhost_uri}\n")
+        if binpkg_format == "xpak":
+            f.write("verify-signature = false\n")
+
     fetchcommand = shlex.split(settings["FETCHCOMMAND"])
     fetch_bin = portage.process.find_binary(fetchcommand[0])
 
@@ -842,6 +845,8 @@ def _generate_all_baseline_commands(playground, binhost):
             with open(binrepos_conf_file, "w") as f:
                 f.write("[test-binhost]\n")
                 f.write(f"sync-uri = file://{binhost_dir}\n")
+                if binpkg_format == "xpak":
+                    f.write("verify-signature = false\n")
 
         getbinpkgonly_file_uri = Emerge(
             "-fe",

Reply via email to