2013-01-10 19:22:16 +01:00
|
|
|
#!/bin/bash -e
|
|
|
|
|
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
|
2013-08-06 22:51:47 +02:00
|
|
|
/usr/bin/env python -u ./manage.py test "$target" --settings=zproject.test_settings "$@"
|