mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-03-16 12:14:06 +00:00
selftests/efivarfs: Add checking of the test return value
[ Upstream commitc93924267f
] Add checking of the test return value, otherwise it will report success forever for test_create_read(). Fixes:dff6d2ae56
("selftests/efivarfs: clean up test files from test_create*()") Signed-off-by: Zhao Gongyi <zhaogongyi@huawei.com> Signed-off-by: Shuah Khan <skhan@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
9b5daa1207
commit
2d5f997987
1 changed files with 5 additions and 0 deletions
|
@ -87,6 +87,11 @@ test_create_read()
|
|||
{
|
||||
local file=$efivarfs_mount/$FUNCNAME-$test_guid
|
||||
./create-read $file
|
||||
if [ $? -ne 0 ]; then
|
||||
echo "create and read $file failed"
|
||||
file_cleanup $file
|
||||
exit 1
|
||||
fi
|
||||
file_cleanup $file
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue