From 874f737a2652c023dafa693cdbbd4d742596e167 Mon Sep 17 00:00:00 2001 From: Benjamin Dauvergne Date: Fri, 17 Jan 2020 15:40:19 +0100 Subject: [PATCH 1/2] tests: really report SQL fixture errors (#29914) --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index c356a18..0701086 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -83,7 +83,7 @@ def load_schema_db(schema): # load data for sql_path in sorted(glob.glob(os.path.join(schema_dir, '*.sql'))): - process = subprocess.Popen(['psql', '--single-transaction', database_name, '-f', sql_path], + process = subprocess.Popen(['psql', '-c', '\\set ON_ERROR_STOP on', '--single-transaction', database_name, '-f', sql_path], stdout=subprocess.PIPE, stderr=subprocess.PIPE) stdout, stderr = process.communicate() -- 2.24.0