Commit fd3aa3d5 authored by James Bottomley's avatar James Bottomley Committed by Ard Biesheuvel
Browse files

selftests/efivarfs: fix tests for failed write removal



The current self tests expect the zero size remnants that failed
variable creation leaves.  Update the tests to verify these are now
absent.

Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: default avatarArd Biesheuvel <ardb@kernel.org>
parent e7b4b1f6
Loading
Loading
Loading
Loading
+7 −4
Original line number Diff line number Diff line
@@ -76,11 +76,11 @@ test_create_empty()

	: > $file

	if [ ! -e $file ]; then
		echo "$file can not be created without writing" >&2
	if [ -e $file ]; then
		echo "$file can be created without writing" >&2
		file_cleanup $file
		exit 1
	fi
	file_cleanup $file
}

test_create_read()
@@ -89,10 +89,13 @@ test_create_read()
	./create-read $file
	if [ $? -ne 0 ]; then
		echo "create and read $file failed"
		file_cleanup $file
		exit 1
	fi
	if [ -e $file ]; then
		echo "file still exists and should not"
		file_cleanup $file
		exit 1
	fi
}

test_delete()