mirror of
https://github.com/boostorg/mysql.git
synced 2026-02-15 13:12:21 +00:00
Now run_tests.py transmits errors correctly
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user