This commit is contained in:
Paulus Schoutsen
2015-09-19 12:29:23 -07:00
parent 6c1f44242c
commit ec1d5e617e
8 changed files with 37 additions and 10 deletions

View File

@@ -7,10 +7,19 @@ cd "$(dirname "$0")/.."
script/lint
STATUS=$?
echo "Running tests..."
if [ "$1" = "coverage" ]; then
py.test --cov homeassistant tests
py.test --cov --cov-report=
else
py.test tests
py.test
fi
if [ $STATUS -eq 0 ]
then
exit $?
else
exit $STATUS
fi