From 8de2ed63debc87266de18a5a518495f529aac922 Mon Sep 17 00:00:00 2001 From: Athmane Madjoudj Date: Sep 17 2012 16:30:44 +0000 Subject: Skip repoclosure test in non QA harness environment --- diff --git a/tests/z_repoclosure/repoclosure_test.sh b/tests/z_repoclosure/repoclosure_test.sh index d48868e..1f8cb37 100755 --- a/tests/z_repoclosure/repoclosure_test.sh +++ b/tests/z_repoclosure/repoclosure_test.sh @@ -3,19 +3,24 @@ t_Log "Running $0 - repoclosure test ." -t_InstallPackage yum-utils +if [ $SKIP_QA_HARNESS ]; then -t_Log "Running repoclosure test ..." + t_InstallPackage yum-utils -repoclosure > /tmp/repoclosure.log 2>&1 -grep -q 'unresolved deps' /tmp/repoclosure.log -if [ $? -eq 0 ] ; then - ret_val=1 -else - ret_val=0 -fi + t_Log "Running repoclosure test ..." + + repoclosure > /tmp/repoclosure.log 2>&1 + grep -q 'unresolved deps' /tmp/repoclosure.log + if [ $? -eq 0 ] ; then + ret_val=1 + else + ret_val=0 + fi -# print the output of repoclosure when it fails -[ $ret_val -eq 1 ] && cat /tmp/repoclosure.log + # print the output of repoclosure when it fails + [ $ret_val -eq 1 ] && cat /tmp/repoclosure.log -t_CheckExitStatus $ret_val + t_CheckExitStatus $ret_val +else + t_Log "Skip this test in non QA harness environment" +fi