Projet

Général

Profil

0001-tests-really-report-SQL-fixture-errors-29914.patch

Benjamin Dauvergne, 20 janvier 2020 12:31

Télécharger (1022 octets)

Voir les différences:

Subject: [PATCH 1/2] tests: really report SQL fixture errors (#29914)

 tests/conftest.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
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
-