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
159 B
Plaintext
11 lines
159 B
Plaintext
#!@BUILD_SHEBANG@
|
|
|
|
set -e
|
|
|
|
if ! which tar >/dev/null 2>&1; then
|
|
echo "tar not installed; cannot test tar."
|
|
exit 77
|
|
fi
|
|
|
|
"@builddir@/grub-fs-tester" tarfs
|