A lot of unittests currently leak content in /tmp when they run.
Rather than explicitly track down every failing test (which we can
do regardless of this), have the runtest runner create a global
tempdir and use that as a base for children tests. Then when the
runtest script finishes, it takes
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA512
On 30/10/15 06:24, Zac Medico wrote:
> Both patches look good.
Yeah, this is great stuff. Thanks Mike!
- --
Alexander
berna...@gentoo.org
https://secure.plaimi.net/~alexander
-BEGIN PGP SIGNATURE-
Version: GnuPG v2
On 10/30/2015 11:52 AM, Zac Medico wrote:
> On 10/30/2015 11:00 AM, Mike Frysinger wrote:
>
>> +try:
>> +# Set up a single tempdir for all the tests to use.
>> +# This way we know the tests won't leak things on us.
>> +tempdir =
On 10/30/2015 11:00 AM, Mike Frysinger wrote:
> + try:
> + # Set up a single tempdir for all the tests to use.
> + # This way we know the tests won't leak things on us.
> + tempdir = tempfile.mkdtemp(prefix='portage.runtests.')
[snip]
> + finally:
> +
A lot of unittests currently leak content in /tmp when they run.
Rather than explicitly track down every failing test (which we can
do regardless of this), have the runtest runner create a global
tempdir and use that as a base for children tests. Then when the
runtest script finishes, it takes