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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 31 Dec 2022 12:14:02 +0000 (13:14 +0100)
commitf1c7a6af710cd22f9c6d5d6a18474e90c2ed40e6
tree771ecc0751ffcad416c8839fc70f2649a619c77b
parent46be3ee1cab965f494ed0311d7783e7ce2ce34b5
selftests/efivarfs: Add checking of the test return value

[ Upstream commit c93924267fe6f2b44af1849f714ae9cd8117a9cd ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
tools/testing/selftests/efivarfs/efivarfs.sh