set -e
pushd "$PWD"/CFC_WebApp
# find . -name \*.pyc | xargs rm
cp config.json.localhost.android config.json
cp keys.json.sample keys.json
python -m unittest discover -s tests -p Test*;
popd
pushd "$PWD"/CFC_DataCollector
# find . -name \*.pyc | xargs rm
cp ../CFC_WebApp/config.json config.json
cp ../CFC_WebApp/keys.json.sample keys.json
PYTHONPATH=. python -m unittest discover -s tests -p Test*
popd

set -e
pushd "$PWD"/CFC_WebApp
# find . -name \*.pyc | xargs rm
cp config.json.localhost.android config.json
cp keys.json.sample keys.json
python -m unittest discover -s tests -p Test*;
popd
pushd "$PWD"/CFC_DataCollector
# find . -name \*.pyc | xargs rm
cp ../CFC_WebApp/config.json config.json
cp ../CFC_WebApp/keys.json.sample keys.json
PYTHONPATH=.:../CFC_WebApp python -m unittest discover -s tests -p Test*
popd

Add the WebApp code into the path for the data collector tests as well
Add the WebApp code into the path for the data collector tests as well

Since the GPS smoothing code uses the gmap_display code to display trajectories
