From c2ef59a67014e1ab7c4405edea7f0998ccd6b684 Mon Sep 17 00:00:00 2001 From: ruben Date: Thu, 16 Apr 2020 11:57:38 +0100 Subject: [PATCH] Now run_tests.py transmits errors correctly --- test/integration/run_tests.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/integration/run_tests.py b/test/integration/run_tests.py index 4d143d1b..c5a96933 100644 --- a/test/integration/run_tests.py +++ b/test/integration/run_tests.py @@ -11,7 +11,7 @@ def run_sql_file(fname): print('Running SQL setup file: {}'.format(fname)) with open(fname, 'rb') as f: sql = f.read() - run([get_executable_name('mysql'), '-u', 'root'], input=sql) + run([get_executable_name('mysql'), '-u', 'root'], input=sql, check=True) def main(): has_sha256 = 'MYSQL_HAS_SHA256' in environ @@ -30,10 +30,10 @@ def main(): if 'MYSQL_HAS_SHA256' in environ: run_sql_file(path.join(this_file_dir, 'db_setup_sha256.sql')) print('Running integration tests with SHA256 support') - run([test_exe]) + run([test_exe], check=True) else: print('Running integration tests without SHA256 support') - run([test_exe, '--gtest_filter=-*RequiresSha256*']) # Exclude anything containing RequiresSha256 + run([test_exe, '--gtest_filter=-*RequiresSha256*'], check=True) # Exclude anything containing RequiresSha256 if __name__ == '__main__': main()