Remove stale .pyc files before tests and local run

This should make running tests faster, as we do not remove all .pyc
files anymore!
This commit is contained in:
Laurent Bachelier 2013-04-09 23:07:12 +02:00 committed by Romain Bignon
commit c58fdf786c
2 changed files with 3 additions and 1 deletions

View file

@ -7,4 +7,6 @@ if [ -z "${PYTHON}" ]; then
which python2.7 >/dev/null 2>&1 && PYTHON=$(which python2.7)
fi
${PYTHON} "$(dirname $0)/stale_pyc.py"
exec "${PYTHON}" "$(dirname $0)/local_run.py" "$@"

View file

@ -62,7 +62,7 @@ fi
# path to sources
WEBOOB_DIR=$(readlink -e $(dirname $0)/..)
find $WEBOOB_DIR -name "*.pyc" -delete
${PYTHON} "$(dirname $0)/stale_pyc.py"
echo "file://$WEBOOB_DIR/modules" > "${WEBOOB_TMPDIR}/sources.list"
export WEBOOB_WORKDIR="${WEBOOB_TMPDIR}"