2016-01-12 13:08:43 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
set -e
|
2013-01-10 19:22:16 +01:00
|
|
|
|
2013-07-29 23:03:31 +02:00
|
|
|
target='zerver'
|
2013-02-01 21:38:56 +01:00
|
|
|
|
|
|
|
case "$1" in
|
2013-07-29 23:03:31 +02:00
|
|
|
zerver*)
|
2013-02-01 21:38:56 +01:00
|
|
|
target="$1"
|
|
|
|
shift
|
|
|
|
;;
|
|
|
|
esac
|
|
|
|
|
2013-01-10 19:22:16 +01:00
|
|
|
cd "$(dirname "$0")"/..
|
2013-08-07 21:41:34 +02:00
|
|
|
./tools/generate-fixtures
|
2015-09-20 09:10:54 +02:00
|
|
|
# "-u" uses unbuffered IO, which is important when wrapping it in subprocess
|
2015-11-16 17:40:32 +01:00
|
|
|
export PYTHONUNBUFFERED="y"
|
|
|
|
/usr/bin/env python2.7 ./manage.py test "$target" --settings=zproject.test_settings "$@"
|