[PATCH 1/5] docker: pass additional args to manage.py test
Sean Farley
sean at farley.io
Wed Jul 12 04:41:35 AEST 2017
Signed-off-by: Sean Farley <sean at farley.io>
---
tools/docker/entrypoint.sh | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/tools/docker/entrypoint.sh b/tools/docker/entrypoint.sh
index 949d8af..2f413b0 100755
--- a/tools/docker/entrypoint.sh
+++ b/tools/docker/entrypoint.sh
@@ -84,10 +84,12 @@ if [ $# -eq 0 ]; then
elif [ "$1" == "--shell" ]; then
exec bash
elif [ "$1" == "--quick-test" ]; then
+ shift
export PW_SKIP_BROWSER_TESTS=yes
- python3 manage.py test
+ python3 manage.py test $@
elif [ "$1" == "--test" ]; then
- xvfb-run --server-args='-screen 0, 1024x768x16' python3 manage.py test
+ shift
+ xvfb-run --server-args='-screen 0, 1024x768x16' python3 manage.py test $@
elif [ "$1" == "--quick-tox" ]; then
shift
export PW_SKIP_BROWSER_TESTS=yes
--
2.13.2
More information about the Patchwork
mailing list