1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00
Files
core/script/test
Paulus Schoutsen ec1d5e617e Fix CI
2015-09-19 12:29:23 -07:00

26 lines
363 B
Bash
Executable File

#!/bin/sh
# script/test: Run test suite for application. Optionallly pass in a path to an
# individual test file to run a single test.
cd "$(dirname "$0")/.."
script/lint
STATUS=$?
echo "Running tests..."
if [ "$1" = "coverage" ]; then
py.test --cov --cov-report=
else
py.test
fi
if [ $STATUS -eq 0 ]
then
exit $?
else
exit $STATUS
fi