[svn-commits] russell: testsuite/bamboo/trunk r102 - /bamboo/trunk/bin/build-asterisk.sh

SVN commits to the Digium repositories svn-commits at lists.digium.com
Thu Mar 18 13:54:50 CDT 2010


Author: russell
Date: Thu Mar 18 13:54:47 2010
New Revision: 102

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=102
Log:
Only print test results if the directory is not empty

Modified:
    bamboo/trunk/bin/build-asterisk.sh

Modified: bamboo/trunk/bin/build-asterisk.sh
URL: http://svnview.digium.com/svn/testsuite/bamboo/trunk/bin/build-asterisk.sh?view=diff&rev=102&r1=101&r2=102
==============================================================================
--- bamboo/trunk/bin/build-asterisk.sh (original)
+++ bamboo/trunk/bin/build-asterisk.sh Thu Mar 18 13:54:47 2010
@@ -98,7 +98,7 @@
 	cp *.xml ${TEST_RESULTS_DIR}
 fi
 
-if [ -d ${TEST_RESULTS_DIR} ] ; then
+if [ "$(ls -A ${TEST_RESULTS_DIR})" ] ; then
 	echo "*** Test Results: ${TEST_RESULTS_DIR} ***"
 	ls -l ${TEST_RESULTS_DIR}
 	cat ${TEST_RESULTS_DIR}/*.xml




More information about the svn-commits mailing list