From: <bms...@us...> - 2007-06-18 21:11:24
|
Revision: 2521 http://svn.sourceforge.net/morphix/?rev=2521&view=rev Author: bmsleight Date: 2007-06-18 14:11:23 -0700 (Mon, 18 Jun 2007) Log Message: ----------- Adding Locking file Modified Paths: -------------- trunk/mmaker/utils/auto-testing/run_testing.sh Modified: trunk/mmaker/utils/auto-testing/run_testing.sh =================================================================== --- trunk/mmaker/utils/auto-testing/run_testing.sh 2007-06-18 20:05:44 UTC (rev 2520) +++ trunk/mmaker/utils/auto-testing/run_testing.sh 2007-06-18 21:11:23 UTC (rev 2521) @@ -19,6 +19,15 @@ # 5 - Convert screenshots to video # 6 - rsync video # 7 - Relax until the next day +if [ -f /tmp/AutoTesting.lock ] +then + echo "Already running AutoTesting" + exit +fi + +echo "Lock File" >/tmp/AutoTesting.lock + + SKIP_DOWNLOADS="$1" TODAY=$(date +"%F") @@ -58,6 +67,7 @@ if [ -z "$SKIP_DOWNLOADS" ]; then rsync -avz --delete-before -e ssh mo...@lo...:morphixorg/autobuilds/base/*$TODAY* /home/morph/autobuilds/base/ rsync -avz --delete-before -e ssh mo...@lo...:morphixorg/autobuilds/mainmod/sid/*$TODAY* /home/morph/autobuilds/mainmod/sid/ + rsync -avz --delete-before -e ssh mo...@lo...:morphixorg/autobuilds/mainmod/etch/*$TODAY* /home/morph/autobuilds/mainmod/etch/ rsync -avz --delete-before -e ssh mo...@lo...:morphixorg/autobuilds/mainmod/sarge/*$TODAY* /home/morph/autobuilds/mainmod/sarge/ rsync -avz --delete-before -e ssh mo...@lo...:morphixorg/autobuilds/minimod/*$TODAY* /home/morph/autobuilds/minimod/ @@ -205,3 +215,4 @@ rsync -avz --delete -e ssh $VID_DIR mo...@lo...:morphixorg/autobuilds/video/ rm $TMP_TAR_DIR/* sudo rm $TMP_ISO_DIR -r +rm /tmp/AutoTesting.lock This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |