selftest/kexec: fix "ignored null byte in input" warning
authorMimi Zohar <zohar@linux.ibm.com>
Wed, 24 Nov 2021 07:08:00 +0000 (12:38 +0530)
committerMimi Zohar <zohar@linux.ibm.com>
Fri, 31 Dec 2021 18:16:02 +0000 (13:16 -0500)
commitcef5cd25a453805237f0c4e789218d987d674290
tree608a2bf7e88470ef9c458a60c230cbd432daf908
parent92ad19559ea9a8ec6f158480934ae26ebfe2c14f
selftest/kexec: fix "ignored null byte in input" warning

Instead of assigning the string to a variable, which might contain a
null character, redirect the output and grep for the string directly.

Reviewed-by: Petr Vorel <pvorel@suse.cz>
Signed-off-by: Mimi Zohar <zohar@linux.ibm.com>
tools/testing/selftests/kexec/test_kexec_file_load.sh