mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 14:03:30 +00:00
test-backend: Allow running a subset of tests
This now allows e.g.
./tools/test-backend zephyr.BugdownTest
or
./tools/test-backend zephyr.BugdownTest --verbosity=2
but unfortunately not
./tools/test-backend --verbosity=2 zephyr.BugdownTest
(imported from commit 95302db3efe45182d789c40c2a2899230a06b091)
This commit is contained in:
@@ -1,4 +1,13 @@
|
|||||||
#!/bin/bash -e
|
#!/bin/bash -e
|
||||||
|
|
||||||
|
target='zephyr'
|
||||||
|
|
||||||
|
case "$1" in
|
||||||
|
zephyr*)
|
||||||
|
target="$1"
|
||||||
|
shift
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
cd "$(dirname "$0")"/..
|
cd "$(dirname "$0")"/..
|
||||||
./manage.py test zephyr --skip-generate --settings=humbug.test_settings "$@"
|
./manage.py test "$target" --skip-generate --settings=humbug.test_settings "$@"
|
||||||
|
|||||||
Reference in New Issue
Block a user