selftests/efivarfs: Add checking of the test return value
authorZhao Gongyi <zhaogongyi@huawei.com>
Tue, 22 Nov 2022 11:26:26 +0000 (19:26 +0800)
committerShuah Khan <skhan@linuxfoundation.org>
Tue, 22 Nov 2022 16:09:04 +0000 (09:09 -0700)
commitc93924267fe6f2b44af1849f714ae9cd8117a9cd
treec7e3f6ad6e812a4be94916a9a46aa5aa506235c6
parent2dfb010d2aafceeab23ccd502c77784006adedd7
selftests/efivarfs: Add checking of the test return value

Add checking of the test return value, otherwise it will report success
forever for test_create_read().

Fixes: dff6d2ae56d0 ("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>
tools/testing/selftests/efivarfs/efivarfs.sh