0001-tests-really-report-SQL-fixture-errors-29914.patch
tests/conftest.py | ||
---|---|---|
83 | 83 | |
84 | 84 |
# load data |
85 | 85 |
for sql_path in sorted(glob.glob(os.path.join(schema_dir, '*.sql'))): |
86 |
process = subprocess.Popen(['psql', '--single-transaction', database_name, '-f', sql_path], |
|
86 |
process = subprocess.Popen(['psql', '-c', '\\set ON_ERROR_STOP on', '--single-transaction', database_name, '-f', sql_path],
|
|
87 | 87 |
stdout=subprocess.PIPE, |
88 | 88 |
stderr=subprocess.PIPE) |
89 | 89 |
stdout, stderr = process.communicate() |
90 |
- |