From 80c30ba9279a8464a04e0ddd50824fe67b93c2e7 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Sep 18 2011 18:13:42 +0000 Subject: Add yum pkg remove test --- diff --git a/tests/p_yum/yum_remove_pkg_test.sh b/tests/p_yum/yum_remove_pkg_test.sh new file mode 100755 index 0000000..ca1a38f --- /dev/null +++ b/tests/p_yum/yum_remove_pkg_test.sh @@ -0,0 +1,12 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - yum remove package test." + +# Install zsh pkg +t_InstallPackage zsh + +yum -d0 -y remove zsh && \ +rpm -q zsh | grep -q 'package zsh is not installed' + +t_CheckExitStatus $?