From ed877bb64ca247cf74a974e1f4563e820859cf0c Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Sep 06 2011 10:54:32 +0000 Subject: Add a test for the installation of centos tree --- diff --git a/tests/r_install-tree/install-tree_test.sh b/tests/r_install-tree/install-tree_test.sh new file mode 100755 index 0000000..c2e677d --- /dev/null +++ b/tests/r_install-tree/install-tree_test.sh @@ -0,0 +1,11 @@ +#!/bin/sh +# Author: Athmane Madjoudj + +t_Log "Running $0 - check if the packages tree is installable." + +yum -y install \* > /tmp/yum_install_tree.log 2>&1 +ret_val=$? +# print the output of yum when it fails +[ $ret_val -ne 0 ] && tail /tmp/yum_install_tree.log + +t_CheckExitStatus $ret_val