2015-01-17 14:32:33 -08:00
|
|
|
# If current pwd is scripts, go 1 up.
|
|
|
|
if [ ${PWD##*/} == "scripts" ]; then
|
|
|
|
cd ..
|
|
|
|
fi
|
|
|
|
|
2015-04-28 19:12:05 -07:00
|
|
|
if [ "$1" = "coverage" ]; then
|
|
|
|
coverage run -m unittest discover tests
|
|
|
|
else
|
|
|
|
python3 -m unittest discover tests
|
|
|
|
fi
|