debugging contrib/buildserver/test_daily.sh. This script occasionally does not download the bundle on Linux.

This commit is contained in:
Robin Mills 2016-07-18 07:12:13 +00:00
parent 6e3dacbdfa
commit bf3b9577ec

View File

@ -19,18 +19,22 @@ echo build = $build
##
# collect build from server
if [ -e /tmp/jenkins ]; then rm -rf /tmp/jenkins ; fi
mkdir /tmp/jenkins
cd /tmp/jenkins
/usr/local/bin/curl -O --silent $JENKINS/$DAILY/$build
if [ -e /tmp/jenkins ]; then
rm -rf /tmp/jenkins
fi
mkdir /tmp/jenkins
cd /tmp/jenkins
echo /usr/local/bin/curl -O $JENKINS/$DAILY/$build
/usr/local/bin/curl -O $JENKINS/$DAILY/$build
ls -alt $build
if [ ! -e $build ]; then echo '*** $build has not been downloaded ***' ; exit 1; fi
if [ ! -e $build ]; then echo '*** $build has not been downloaded ***' ; exit 0; fi
##
# expand the bundle
if [ -e dist ]; then rm -rf dist ;fi
tar xzf $build
if [ ! -e dist ]; then echo '*** no dist directory ***' ; exit 1; fi
if [ ! -e dist ]; then echo '*** no dist directory ***' ; exit 0; fi
##
# enter the dist and test it