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

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Wed Mar 17 17:23:42 CDT 2010


Author: russell
Date: Wed Mar 17 17:23:39 2010
New Revision: 89

URL: http://svnview.digium.com/svn/testsuite?view=rev&rev=89
Log:
Don't just wait for the file to exist, wait for it to be non-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=89&r1=88&r2=89
==============================================================================
--- bamboo/trunk/bin/build-asterisk.sh (original)
+++ bamboo/trunk/bin/build-asterisk.sh Wed Mar 17 17:23:39 2010
@@ -41,7 +41,7 @@
        asterisk -rx "test generate results xml ${TEST_RESULTS_DIR}/unit-test-results.xml"
 
        LOOPCOUNT=0
-       while [ ! -f "${TEST_RESULTS_DIR}/unit-test-results.xml" ] ; do
+       while [ ! -s "${TEST_RESULTS_DIR}/unit-test-results.xml" ] ; do
                sleep 1
                LOOPCOUNT=$[${LOOPCOUNT} + 1]
                if [ ${LOOPCOUNT} == 30 ] ; then




More information about the asterisk-commits mailing list