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:
parent
8858ebc4ab
commit
d91e92c2f5
2
test.sh
2
test.sh
|
@ -10,6 +10,8 @@ if [ $# -eq 0 ]
|
||||||
echo
|
echo
|
||||||
else
|
else
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
|
rm -rf dist/tools
|
||||||
|
rm -rf dist/all
|
||||||
if [ -z ${NODE_PATH+x} ]; then
|
if [ -z ${NODE_PATH+x} ]; then
|
||||||
export NODE_PATH=$(pwd)/dist/all:$(pwd)/dist/tools
|
export NODE_PATH=$(pwd)/dist/all:$(pwd)/dist/tools
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue