Commit c58fdf78 authored by Laurent Bachelier's avatar Laurent Bachelier 🐧 Committed by Romain Bignon
Browse files

Remove stale .pyc files before tests and local run

This should make running tests faster, as we do not remove all .pyc
files anymore!
parent 11ed5938
......@@ -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" "$@"
......@@ -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}"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment