From ca2d3eb8c9e421d3d93fbe958a40b31c88b23044 Mon Sep 17 00:00:00 2001 From: Karanbir Singh Date: Nov 09 2012 10:42:40 +0000 Subject: add some debugging --- diff --git a/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh b/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh index 217fc35..ceff6c6 100755 --- a/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh +++ b/tests/p_yum-plugin-fastestmirror/10-fastestmirror.sh @@ -1,7 +1,7 @@ #!/bin/sh # Ensure plugin is enabled : - +set +x t_Log "Running $0 - is y-p-fastestmirror enabled." grep 'enabled=1' /etc/yum/pluginconf.d/fastestmirror.conf > /dev/null t_CheckExitStatus $? @@ -20,7 +20,8 @@ t_CheckExitStatus $? t_Log "Running $0 - is y-p-fastestmirror can get hosts" find $BaseDir -type f -name timedhosts.txt -exec rm -f {} \; yum -d0 list kernel > /dev/null -hostsfound=$( wc -l ${BaseDir}/timedhosts.txt ) > /dev/null + +hostsfound=`wc -l $BaseDir/timedhosts.txt` > /dev/null # we need to make sure the file was recreated if [ ! -f ${BaseDir}/timedhosts.txt ]; then