Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 821afb8c authored by Zhao Gongyi's avatar Zhao Gongyi Committed by Greg Kroah-Hartman
Browse files

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: dff6d2ae ("selftests/efivarfs: clean up test files from test_create*()")
Signed-off-by: default avatarZhao Gongyi <zhaogongyi@huawei.com>
Signed-off-by: default avatarShuah Khan <skhan@linuxfoundation.org>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent c0b8cff0
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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
}