summary refs log tree commit diff
path: root/tests
diff options
context:
space:
mode:
authorRichard van der Hoff <richard@matrix.org>2019-06-10 17:41:10 +0100
committerRichard van der Hoff <richard@matrix.org>2019-06-10 17:41:10 +0100
commit19780a521ec1d200bbc1d25bf5041f8fc5691b40 (patch)
tree2ff483663429d783a7c072fe44b789b655e225af /tests
parentfix build fails (diff)
downloadsynapse-19780a521ec1d200bbc1d25bf5041f8fc5691b40.tar.xz
fix CI on python 2.7
Diffstat (limited to 'tests')
-rw-r--r--tests/http/__init__.py10
1 files changed, 4 insertions, 6 deletions
diff --git a/tests/http/__init__.py b/tests/http/__init__.py
index b03fff0945..126826fd3f 100644
--- a/tests/http/__init__.py
+++ b/tests/http/__init__.py
@@ -70,7 +70,7 @@ def create_test_cert_file(sanlist):
     cert_file_count += 1
 
     # first build a CSR
-    subprocess.run(
+    subprocess.check_call(
         [
             "openssl",
             "req",
@@ -81,8 +81,7 @@ def create_test_cert_file(sanlist):
             "/",
             "-out",
             csr_filename,
-        ],
-        check=True,
+        ]
     )
 
     # now a config file describing the right SAN entries
@@ -93,7 +92,7 @@ def create_test_cert_file(sanlist):
     # finally the cert
     ca_key_filename = os.path.join(os.path.dirname(__file__), "ca.key")
     ca_cert_filename = get_test_ca_cert_file()
-    subprocess.run(
+    subprocess.check_call(
         [
             "openssl",
             "x509",
@@ -110,8 +109,7 @@ def create_test_cert_file(sanlist):
             cnf_filename,
             "-out",
             cert_filename,
-        ],
-        check=True,
+        ]
     )
 
     return cert_filename