From 9bd63278fc2d6aa7163e1e023f1a007197126b34 Mon Sep 17 00:00:00 2001 From: Fabian Arrotin Date: Sep 21 2015 07:52:56 +0000 Subject: Fixed the return code status for shim/grub2 test --- diff --git a/tests/p_grub2/01_grub2_secureboot_signed.sh b/tests/p_grub2/01_grub2_secureboot_signed.sh index 02bfc6a..002dc3c 100755 --- a/tests/p_grub2/01_grub2_secureboot_signed.sh +++ b/tests/p_grub2/01_grub2_secureboot_signed.sh @@ -6,7 +6,7 @@ t_Log "Running $0 - Verifying that grub2-efi is correctly signed with correct c if [ "$centos_ver" = "7" ] ; then t_InstallPackage pesign grub2-efi pesign --show-signature --in /boot/efi/EFI/centos/grubx64.efi|grep -q 'Red Hat Inc.' - t_CheckExitStatus 0 + t_CheckExitStatus $? else t_log "previous versions than CentOS 7 aren't using secureboot ... skipping" exit 0 diff --git a/tests/p_shim/01_shim_secureboot_signed.sh b/tests/p_shim/01_shim_secureboot_signed.sh index ce7c2d6..81e45ec 100755 --- a/tests/p_shim/01_shim_secureboot_signed.sh +++ b/tests/p_shim/01_shim_secureboot_signed.sh @@ -6,7 +6,7 @@ t_Log "Running $0 - Verifying that shim.efi is correctly signed with correct ce if [ "$centos_ver" = "7" ] ; then t_InstallPackage pesign shim pesign --show-signature --in /boot/efi/EFI/centos/shim.efi|grep -q 'Red Hat Inc.' - t_CheckExitStatus 0 + t_CheckExitStatus $? else t_log "previous versions than CentOS 7 aren't using shim/secureboot ... skipping" exit 0