From b3d99bead96a6838669b5646ae0e45fdc7ed45d5 Mon Sep 17 00:00:00 2001 From: Christoph Galuschka Date: Nov 09 2012 08:28:30 +0000 Subject: added YUMDEBUG option to functions.sh to increase debugging of yum if desired --- diff --git a/tests/0_lib/functions.sh b/tests/0_lib/functions.sh index 3e10393..42400a3 100755 --- a/tests/0_lib/functions.sh +++ b/tests/0_lib/functions.sh @@ -4,6 +4,9 @@ export readonly PASS=0 export readonly FAIL=1 +# set debug level of yum install in t_InstallPackage +YUMDEBUG=0 + # Description: call this function whenever you need to log output (preferred to calling echo) # Arguments: log string to display function t_Log @@ -26,7 +29,7 @@ function t_CheckExitStatus function t_InstallPackage { t_Log "Attempting yum install: $*" - /usr/bin/yum -y -d0 install "$@" + /usr/bin/yum -y -d${YUMDEBUG} install "$@" # TODO: add a hook here, to make sure all binary files have ldd run # against them, and that there are no missing linker targets t_CheckExitStatus $?