]> git.baikalelectronics.ru Git - kernel.git/commit
selftests: efivarfs: remove the test_create_read file if it was exist
authorZhangXiaoxu <zhangxiaoxu5@huawei.com>
Tue, 19 Mar 2019 03:24:31 +0000 (11:24 +0800)
committerShuah Khan <shuah@kernel.org>
Mon, 8 Apr 2019 22:44:21 +0000 (16:44 -0600)
commit40afb49c6a5c5e782b91ba2b891315c05e97fb75
treed4346be7aeb80812f504c84e85d2b16eb89aad10
parentbbdcac9709c3a0b5943b2eb01961f7cf0743bd2f
selftests: efivarfs: remove the test_create_read file if it was exist

After the first run, the test case 'test_create_read' will always
fail because the file is exist and file's attr is 'S_IMMUTABLE',
open with 'O_RDWR' will always return -EPERM.

Signed-off-by: ZhangXiaoxu <zhangxiaoxu5@huawei.com>
Signed-off-by: Shuah Khan <shuah@kernel.org>
tools/testing/selftests/efivarfs/efivarfs.sh