There is no reason to fail a test if the required testing tool is not present on the system, so skip the test instead of failing it. Signed-off-by: Leo Sandoval <lsandova@redhat.com> Reviewed-by: Andrew Hamilton <adhamilt@gmail.com> Reviewed-by: Neal Gompa <ngompa13@gmail.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
11 lines
171 B
Plaintext
11 lines
171 B
Plaintext
#!@BUILD_SHEBANG@
|
|
|
|
set -e
|
|
|
|
if ! which genromfs >/dev/null 2>&1; then
|
|
echo "genromfs not installed; cannot test romfs."
|
|
exit 77
|
|
fi
|
|
|
|
"@builddir@/grub-fs-tester" romfs
|