From: Hui Wang <hui.wang@canonical.com>
To: Ard Biesheuvel <ardb@kernel.org>,
shuah@kernel.org, Shuah Khan <skhan@linuxfoundation.org>,
linux-kselftest@vger.kernel.org
Subject: Re: [PATCH v2] selftests/efivarfs: skip write tests if efivarfs is mounted read-only
Date: Fri, 4 Sep 2026 15:08:21 +0800 [thread overview]
Message-ID: <a057f075-920f-4673-a9d0-5920a41e02a8@canonical.com> (raw)
In-Reply-To: <caf1ec53-fef7-41c0-880f-7e403a75d3e7@app.fastmail.com>
On 9/4/26 14:44, Ard Biesheuvel wrote:
>
> On Fri, 4 Sep 2026, at 04:06, Hui Wang wrote:
>> The previous mail was rejected by linux-kselftest maillist because the
>> html part is detected. Fixing it and re-sending the mail.
>>
>> On 9/3/26 17:34, Ard Biesheuvel wrote:
>>>> run_test()
>>>> @@ -74,7 +82,7 @@ test_create_empty()
>>>> {
>>>> local file=$efivarfs_mount/$FUNCNAME-$test_guid
>>>>
>>>> - : > $file
>>>> + : 2>/dev/null > $file
>>>>
>>> Why is this needed?
>> The test_create_empty() will be run on read-only efivarfs, and it will
>> print [PASS], but it will also print some noise message with read-only
>> filesystem like:
>>
>> --------------------
>> running test_create_empty
>> --------------------
>> $(TESTCASE_PATH)/efivarfs.sh: line 85:
>> /sys/firmware/efi/efivars/test_create_empty-210be57c-9849-4fc7-a635-e6382d1aec27:
>> Read-only file system
>> [PASS]
>>
>> This change is for suppressing the noise message and make the output
>> clean like below:
>>
>> --------------------
>> running test_create_empty
>> --------------------
>> [PASS]
>>
> That does not make sense.
>
> If the file does not exist after attempting to create it, the test has failed.
> But I suspect that this fails even on a read-write efivarfs, given that EFI
> does not support zero-length variables.
>
> Please fix this in a separate patch, or leave it alone. Don't paper over it
> like this.
OK, got it.
Thanks.
prev parent reply other threads:[~2026-09-04 7:08 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-08-20 3:01 [PATCH v2] selftests/efivarfs: skip write tests if efivarfs is mounted read-only Hui Wang
2026-09-03 9:34 ` Ard Biesheuvel
2026-09-04 2:06 ` Hui Wang
2026-09-04 6:44 ` Ard Biesheuvel
2026-09-04 7:08 ` Hui Wang [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=a057f075-920f-4673-a9d0-5920a41e02a8@canonical.com \
--to=hui.wang@canonical.com \
--cc=ardb@kernel.org \
--cc=linux-kselftest@vger.kernel.org \
--cc=shuah@kernel.org \
--cc=skhan@linuxfoundation.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