mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
tests: Skip tests if required tools are not available
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>
This commit is contained in:
1 parent
d9b7b23d2d
commit
bf13fed5fe
29 files changed
+36
-36
No files matched your search
@@ -41,7 +41,7 @@ fi
|
||||
|
||||
if ! command -v cryptsetup >/dev/null 2>&1; then
|
||||
echo "cryptsetup not installed; cannot test tpm2."
|
||||
exit 99
|
||||
exit 77
|
||||
fi
|
||||
|
||||
if ! grep -q tpm_vtpm_proxy /proc/modules && ! modprobe tpm_vtpm_proxy; then
|
||||
@@ -51,7 +51,7 @@ fi
|
||||
|
||||
if ! command -v swtpm >/dev/null 2>&1; then
|
||||
echo "swtpm not installed; cannot test tpm2."
|
||||
exit 99
|
||||
exit 77
|
||||
fi
|
||||
|
||||
if ! command -v tpm2_startup >/dev/null 2>&1; then
|
||||
|
||||
Reference in new issue
Block a user