]> git.ipfire.org Git - thirdparty/patchwork.git/commitdiff
tox: fix failure due to whitespaces in passenv
authorYou-Sheng Yang (vicamo) <vicamo@gmail.com>
Fri, 13 Jan 2023 02:53:58 +0000 (10:53 +0800)
committerStephen Finucane <stephen@that.guru>
Tue, 1 Aug 2023 17:44:32 +0000 (18:44 +0100)
When installed tox >= 4, space-separated variables specified for passenv
are no longer allowed.

Signed-off-by: You-Sheng Yang (vicamo) <vicamo@gmail.com>
(cherry picked from commit 8fd3f6a5c424dda953fba52a8d4df09333afd105)

tox.ini

diff --git a/tox.ini b/tox.ini
index 4873866eda1b1c695bf005f9e9f0a3befd187f16..5be797c1f4136031ba459413fbac59c023f24a39 100644 (file)
--- a/tox.ini
+++ b/tox.ini
@@ -20,9 +20,19 @@ setenv =
     PYTHONDEVMODE = 1
     PYTHONWARNINGS = once
 passenv =
-    http_proxy HTTP_PROXY https_proxy HTTPS_PROXY no_proxy NO_PROXY
-    DATABASE_TYPE DATABASE_USER DATABASE_PASSWORD DATABASE_HOST
-    DATABASE_PORT DATABASE_NAME DJANGO_TEST_PROCESSES
+    http_proxy
+    HTTP_PROXY
+    https_proxy
+    HTTPS_PROXY
+    no_proxy
+    NO_PROXY
+    DATABASE_TYPE
+    DATABASE_USER
+    DATABASE_PASSWORD
+    DATABASE_HOST
+    DATABASE_PORT
+    DATABASE_NAME
+    DJANGO_TEST_PROCESSES
 commands =
     python {toxinidir}/manage.py test --noinput --parallel -- {posargs:patchwork}