mirror of
https://github.com/zulip/zulip.git
synced 2026-06-18 21:01:52 +08:00
The #! line processing interpreted the argument to pass to `env` as "python2.7 -u", which obviously isn't a real program. We fix this by setting the PYTHONUNBUFFERED environment variable inside the program, which has the same effect. Thanks to Dan Fedele for the bug report and suggested solution!
17 lines
348 B
Bash
Executable File
17 lines
348 B
Bash
Executable File
#!/bin/bash -e
|
|
|
|
target='zerver'
|
|
|
|
case "$1" in
|
|
zerver*)
|
|
target="$1"
|
|
shift
|
|
;;
|
|
esac
|
|
|
|
cd "$(dirname "$0")"/..
|
|
./tools/generate-fixtures
|
|
# "-u" uses unbuffered IO, which is important when wrapping it in subprocess
|
|
export PYTHONUNBUFFERED="y"
|
|
/usr/bin/env python2.7 ./manage.py test "$target" --settings=zproject.test_settings "$@"
|