Signed-off-by: Michał Górny <mgo...@gentoo.org>
---
 eclass/python-utils-r1.eclass | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/eclass/python-utils-r1.eclass b/eclass/python-utils-r1.eclass
index abb55bd2e942..27fb92a75aca 100644
--- a/eclass/python-utils-r1.eclass
+++ b/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
-- 
2.43.0


Reply via email to