From 27c878f6651c36a1b283bfe7d0f2f19e38131137 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Dec 02 2011 09:33:17 +0000 Subject: Fix abrt test, we dont have abrt in C5. --- diff --git a/tests/p_abrt/0-install_abrt.sh b/tests/p_abrt/0-install_abrt.sh index 96c6b31..cfc62a1 100755 --- a/tests/p_abrt/0-install_abrt.sh +++ b/tests/p_abrt/0-install_abrt.sh @@ -1,5 +1,10 @@ #!/bin/bash # Author: Athmane Madjoudj -t_InstallPackage abrt +if (t_GetPkgRel basesystem | grep -q el6) +then + t_InstallPackage abrt +else + echo "Skipped on CentOS 5" +fi diff --git a/tests/p_abrt/abrt_gpg_keys_test.sh b/tests/p_abrt/abrt_gpg_keys_test.sh index 30311c7..e3e26bb 100755 --- a/tests/p_abrt/abrt_gpg_keys_test.sh +++ b/tests/p_abrt/abrt_gpg_keys_test.sh @@ -5,6 +5,11 @@ t_Log "Running $0 - check that abrt is using CentOS' gpg keys." -grep -q "RPM-GPG-KEY-CentOS" /etc/abrt/gpg_keys +if (t_GetPkgRel basesystem | grep -q el6) +then + grep -q "RPM-GPG-KEY-CentOS" /etc/abrt/gpg_keys +else + echo "Skipped on CentOS 5" +fi t_CheckExitStatus $?