build(test.sh): clear dist directory when the script starts

This is to prevent stale files causing the tests to fail when we run them locally after checking out a new revision.
This commit is contained in:
Igor Minar 2016-09-02 16:23:00 -07:00 committed by Martin Probst
parent 8858ebc4ab
commit d91e92c2f5
1 changed files with 2 additions and 0 deletions

View File

@ -10,6 +10,8 @@ if [ $# -eq 0 ]
echo
else
cd `dirname $0`
rm -rf dist/tools
rm -rf dist/all
if [ -z ${NODE_PATH+x} ]; then
export NODE_PATH=$(pwd)/dist/all:$(pwd)/dist/tools
else