forked from platypush/platypush
Improved tests script
This commit is contained in:
parent
1a7d0a3b07
commit
d1b7b1768c
1 changed files with 12 additions and 1 deletions
13
run_tests.sh
13
run_tests.sh
|
@ -1,11 +1,22 @@
|
|||
#!/bin/bash
|
||||
|
||||
PYTHON=python
|
||||
tests_ret=0
|
||||
|
||||
for testcase in tests/test_*.py
|
||||
do
|
||||
$PYTHON -m unittest $testcase
|
||||
test_ret=$?
|
||||
|
||||
if [[ $test_ret != 0 ]]; then
|
||||
tests_ret=$test_ret
|
||||
echo "-------------" >&2
|
||||
echo "Test FAILED: $testcase" >&2
|
||||
echo "-------------" >&2
|
||||
fi
|
||||
done
|
||||
|
||||
# vim:sw=4:ts=4:et:
|
||||
exit $tests_ret
|
||||
|
||||
|
||||
# vim:sw=4:ts=4:et:
|
||||
|
|
Loading…
Reference in a new issue