mirror of
https://salsa.debian.org/grub-team/grub.git
synced 2026-01-16 23:13:11 +00:00
Many tests abort due to not being root or missing tools, for instance mkfs commands for file system tests. The tests are exited with code 77, which means they were skipped. A skipped test is a test that should not be run, e.g. a test specific to ARM64 should not be run on an x86 build. These aborts are actually a hard error, code 99. That means that the test could not be completed, but not because what was supposed to be tested failed, e.g. in these cases where a missing tool prevents the running of a test. Signed-off-by: Glenn Washburn <development@efficientek.com> Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
18 lines
265 B
Text
18 lines
265 B
Text
#!@BUILD_SHEBANG@
|
|
|
|
set -e
|
|
|
|
if [ "x$EUID" = "x" ] ; then
|
|
EUID=`id -u`
|
|
fi
|
|
|
|
if [ "$EUID" != 0 ] ; then
|
|
exit 99
|
|
fi
|
|
|
|
if ! which mkfs.exfat >/dev/null 2>&1; then
|
|
echo "mkfs.exfat not installed; cannot test exFAT."
|
|
exit 99
|
|
fi
|
|
|
|
"@builddir@/grub-fs-tester" exfat
|