From: Richard Henderson <richard.henderson@linaro.org>
To: Michael Tokarev <mjt@tls.msk.ru>,
Maxim Cournoyer <maxim@guixotic.coop>,
qemu-devel@nongnu.org
Subject: Re: [PATCH] tests: honor $TMPDIR for test_virtio_version
Date: Tue, 2 Sep 2025 12:36:52 +0200 [thread overview]
Message-ID: <c080bfe4-9aff-48bc-b99a-b9045fabb3e6@linaro.org> (raw)
In-Reply-To: <c1b6e93a-1c85-4626-8ea6-5efee2bf9489@tls.msk.ru>
On 9/1/25 16:41, Michael Tokarev wrote:
> On 31.08.2025 15:52, Maxim Cournoyer wrote:
>> Until 10.1.0, the test suite could be run without having a writable
>> /var/tmp in the build environment. To avoid now requiring /var/tmp in
>> the build environment (which can be a very minimal container like in
>> the case of GNU Guix), consult TMPDIR first, using /var/tmp as a
>> fallback.
>
>> diff --git a/tests/functional/x86_64/test_virtio_version.py b/tests/functional/x86_64/
>> test_virtio_version.py
>> index a5ea73237f..501545f655 100755
>> --- a/tests/functional/x86_64/test_virtio_version.py
>> +++ b/tests/functional/x86_64/test_virtio_version.py
>
>> @@ -68,7 +70,9 @@ def run_device(self, devtype, opts=None, machine='pc'):
>> """
>> Run QEMU with `-device DEVTYPE`, return device info from `query-pci`
>> """
>> - with QEMUMachine(self.qemu_bin) as vm:
>> + with QEMUMachine(
>> + self.qemu_bin,
>> + base_temp_dir=os.environ.get('TMPDIR', '/var/tmp')) as vm:
>
> I don't think /var/tmp is a good choice here, - I'm a bit surprised it
> come from you when your OS doesn't have /var/tmp by default - shouldn't
> it be /tmp here?
>
> Overall, /var/tmp is a strange choice here and in a few other tests too,
> -- maybe only block.c default is the only right place to have it as the
> fallback/default.
It's possible that it's the testsuite that should be changed to prefer /var/tmp when
present and TMPDIR is tmpfs. I don't know enough about what prompted the original change
in the first place.
But my point is that with *only* this change, it is very likely that this simply exchanges
one set of failures for another.
r~
prev parent reply other threads:[~2025-09-02 10:37 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-31 12:52 [PATCH] tests: honor $TMPDIR for test_virtio_version Maxim Cournoyer
2025-09-01 6:41 ` Michael Tokarev
2025-09-01 7:36 ` Maxim Cournoyer
2025-09-02 10:36 ` Richard Henderson [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c080bfe4-9aff-48bc-b99a-b9045fabb3e6@linaro.org \
--to=richard.henderson@linaro.org \
--cc=maxim@guixotic.coop \
--cc=mjt@tls.msk.ru \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).