Skip to content

Commit f212d2b

Browse files
committed
ResolverPlayground: report returncode for egencache failure
Bug: https://bugs.gentoo.org/965132 Signed-off-by: Zac Medico <[email protected]>
1 parent 48b91a2 commit f212d2b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lib/portage/tests/resolver/ResolverPlayground.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Copyright 2010-2024 Gentoo Authors
1+
# Copyright 2010-2025 Gentoo Authors
22
# Distributed under the terms of the GNU General Public License v2
33

44
import bz2
@@ -341,7 +341,9 @@ def _create_ebuild_manifests(self, ebuilds):
341341
env=self.settings.environ(),
342342
)
343343
if result.returncode != os.EX_OK:
344-
raise AssertionError(f"command failed: {egencache_cmd}")
344+
raise AssertionError(
345+
f"command failed with returncode {result.returncode}: {egencache_cmd}"
346+
)
345347

346348
def _create_binpkgs(self, binpkgs):
347349
# When using BUILD_ID, there can be multiple instances for the

0 commit comments

Comments
 (0)