Improve error output for the RE-SQL tests.

This commit is contained in:
Dave Page 2019-07-16 09:35:00 +01:00
parent 2c2c738f31
commit aed6b9e636

View File

@ -222,11 +222,12 @@ class ReverseEngineeredSQLTestCases(BaseTestGenerator):
# Compare the reverse engineering SQL # Compare the reverse engineering SQL
if not self.check_re_sql(scenario, object_id): if not self.check_re_sql(scenario, object_id):
print_msg = scenario['name'] print(scenario['name'] + "... FAIL")
if 'expected_sql_file' in scenario: if 'expected_sql_file' in scenario:
print_msg = print_msg + " Expected SQL File:" + \ print_msg = " - Expected SQL File: " + \
scenario['expected_sql_file'] os.path.join(self.test_folder,
print_msg = print_msg + "... FAIL" scenario['expected_sql_file'])
print(print_msg) print(print_msg)
continue continue
elif 'type' in scenario and scenario['type'] == 'alter': elif 'type' in scenario and scenario['type'] == 'alter':