Diff

Differences From Artifact [044e3f13f1]:

To Artifact [50f53a7092]:


    24     24   
    25     25   if [ ! -x kits -o ! -x publish-tests ]; then
    26     26   	echo 'Missing scripts, aborting.' >&2
    27     27   
    28     28   	exit 1
    29     29   fi
    30     30   
           31  +# Only run one at a time
           32  +if [ -f '__AUTO_TESTS_RUNNING__' ]; then
           33  +	exit 1
           34  +fi
           35  +touch '__AUTO_TESTS_RUNNING__'
           36  +
    31     37   # Clean builds
    32     38   rm -rf kits
    33     39   
    34     40   # Run tests
    35     41   nice -n 20 ./test >/dev/null 2>/dev/null
    36     42   
    37     43   # Clean old SVN published results
    38     44   rm -rf "${WEBROOTDIR}"/svn_r*/
    39     45   
    40     46   # Publish New Results
    41     47   ./publish-tests "${TESTNAME}"
    42     48   
           49  +# Clean
           50  +rm -f '__AUTO_TESTS_RUNNING__'
           51  +
    43     52   exit 0