From a2faee5f9536852937895dd83c3a05e40e2209e6 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Jul 13 2011 19:11:24 +0000 Subject: Added CentOS Anaconda patch is applied test --- diff --git a/tests/p_anaconda/0-install_anaconda.sh b/tests/p_anaconda/0-install_anaconda.sh new file mode 100755 index 0000000..a8c502a --- /dev/null +++ b/tests/p_anaconda/0-install_anaconda.sh @@ -0,0 +1,4 @@ +#!/bin/bash +# Author: Athmane Madjoudj + +t_InstallPackage anaconda diff --git a/tests/p_anaconda/anaconda_centos_patch.sh b/tests/p_anaconda/anaconda_centos_patch.sh new file mode 100755 index 0000000..50247ce --- /dev/null +++ b/tests/p_anaconda/anaconda_centos_patch.sh @@ -0,0 +1,14 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - CentOS Anaconda patch is applied test." + +ANACONDA_PATH=/usr/lib/anaconda/ + +(grep "id = \"centos\"" $ANACONDA_PATH/installclasses/rhel.py >/dev/null 2>&1) &&\ + +(grep "name = N_(\"CentOS Linux\")" $ANACONDA_PATH/installclasses/rhel.py >/dev/null 2>&1) &&\ + +(grep "\"CentOS\": (\"CentOS release\", )," $ANACONDA_PATH/installclasses/rhel.py >/dev/null 2>&1) + +t_CheckExitStatus $?