commit:     b774995375493a943dddc68dfdaedb39438aa28b
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Wed Jan  3 13:24:27 2024 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Fri Jan  5 20:18:51 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7749953

python-utils-r1.eclass: Minimize pytest tempdir retention

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 eclass/python-utils-r1.eclass | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index abb55bd2e942..a82379ce876b 100644
--- a/eclass/python-utils-r1.eclass
+++ b/eclass/python-utils-r1.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2024 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 # @ECLASS: python-utils-r1.eclass
@@ -1344,6 +1344,11 @@ epytest() {
                # count is more precise when we're dealing with a large number
                # of tests
                -o console_output_style=count
+               # minimize the temporary directory retention, the test suites
+               # of some packages can grow them pretty large and normally
+               # we don't need to preserve them
+               -o tmp_path_retention_count=0
+               -o tmp_path_retention_policy=failed
        )
 
        if [[ ! ${PYTEST_DISABLE_PLUGIN_AUTOLOAD} ]]; then

Reply via email to