bstinson / centos / t_functional

Forked from centos/t_functional 4 years ago
Clone

Blame tests/z_install-tree/install-tree_test.sh

Athmane Madjoudj ed877b
#!/bin/sh
Athmane Madjoudj ed877b
# Author: Athmane Madjoudj <athmanem@gmail.com>
Athmane Madjoudj ed877b
Athmane Madjoudj ed877b
t_Log "Running $0 -  check if the packages tree is installable."
Athmane Madjoudj ed877b
Athmane Madjoudj 324b86
yum --skip-broken -y install \* > /tmp/yum_install_tree.log 2>&1
Athmane Madjoudj ed877b
ret_val=$?
Athmane Madjoudj ed877b
# print the output of yum when it fails
Athmane Madjoudj ed877b
[ $ret_val -ne 0 ] && tail /tmp/yum_install_tree.log
Athmane Madjoudj ed877b
Athmane Madjoudj ed877b
t_CheckExitStatus $ret_val