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]
Thanks,
Hui.