grub-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/5] tests: Exit with skipped exit code when test not performed


From: Glenn Washburn
Subject: [PATCH 1/5] tests: Exit with skipped exit code when test not performed
Date: Sat, 19 Dec 2020 04:14:36 -0600

These tests were not performed and therefore did not pass, nor fail. This
fixes odd behavior where the pseries_test will pass on i386-pc.

Signed-off-by: Glenn Washburn <development@efficientek.com>
---
 tests/core_compress_test.in | 2 +-
 tests/pseries_test.in       | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/tests/core_compress_test.in b/tests/core_compress_test.in
index 9d216ebcf..2fd0a571c 100644
--- a/tests/core_compress_test.in
+++ b/tests/core_compress_test.in
@@ -22,7 +22,7 @@ grubshell=@builddir@/grub-shell
 case "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" in
     # FIXME: Only mips currently supports configurable core compression
     *-emu | i386-* | x86_64-* | sparc64-* | ia64-*)
-       exit 0
+       exit 77
        ;;
 esac
 
diff --git a/tests/pseries_test.in b/tests/pseries_test.in
index 655eb4f3a..9b4090cf5 100644
--- a/tests/pseries_test.in
+++ b/tests/pseries_test.in
@@ -20,7 +20,7 @@ grubshell=@builddir@/grub-shell
 . "@builddir@/grub-core/modinfo.sh"
 
 if [ "${grub_modinfo_target_cpu}-${grub_modinfo_platform}" != powerpc-ieee1275 
]; then
-   exit 0
+   exit 77
 fi
 
 if [ "$(echo hello | "${grubshell}" --pseries --timeout=180 --boot=cd)" != 
"Hello World" ]; then
-- 
2.27.0




reply via email to

[Prev in Thread] Current Thread [Next in Thread]