Diff

Differences From Artifact [cae4b1c112]:

To Artifact [751816bb2c]:


    11     11   TMPWORKDIR="${TMPDIR:-/var/tmp}/kitcreator-test-$$${RANDOM}${RANDOM}${RANDOM}"
    12     12   export KITCREATORFOSSIL WEBROOTDIR MARKERFILE TMPWORKDIR
    13     13   
    14     14   # Determine change of fossil revision
    15     15   FOSSIL_CHANGE="$(fossil timeline --repository "${KITCREATORFOSSIL}" -n 1 -t ci | grep '^[0-9:]* \[' | sed 's@^[0-9:]* \[\([0-9a-f]*\)\].*$@\1@')"
    16     16   TESTNAME="fossil_${FOSSIL_CHANGE}"
    17     17   export FOSSIL_CHANGE TESTNAME
           18  +
           19  +# Verify sanity
           20  +issane=1
           21  +if [ ! -f "${KITCREATORFOSSIL}" ]; then
           22  +	echo "Missing Kitcreator Fossil Repo: ${KITCREATORFOSSIL}" >&2
           23  +
           24  +	issane=0
           25  +fi
           26  +
           27  +if [ ! -d "${WEBROOTDIR}" ]; then
           28  +	echo "Missing Web Root Directory: ${WEBROOTDIR}" >&2
           29  +
           30  +	issane=0
           31  +fi
           32  +
           33  +if [ "${issane}" = '0' ]; then
           34  +	exit 1
           35  +fi
    18     36   
    19     37   # On Wednesday, do a distclean to force redownloading everything (mainly
    20     38   # for CVS Head) and force a rebuild to ensure up-to-date build status
    21     39   if [ "$(date '+%u')" != "3" ]; then
    22     40   	if [ -d "${WEBROOTDIR}/${TESTNAME}" ]; then
    23     41   		# Don't re-run the tests if nothing has changed
    24     42   		exit 0