]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
docker: pass additional args to manage.py test
authorSean Farley <sean@farley.io>
Tue, 11 Jul 2017 18:41:35 +0000 (11:41 -0700)
committerStephen Finucane <stephen@that.guru>
Wed, 12 Jul 2017 09:33:45 +0000 (10:33 +0100)
Signed-off-by: Sean Farley <sean@farley.io>
Reviewed-by: Stephen Finucane <stephen@that.guru>
tools/docker/entrypoint.sh

index 949d8afd5a5832111b345c43ed36c8726713fd27..2f413b02e83eb008442141b50ac3711f0afb9b14 100755 (executable)
@@ -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