From 47caf5f3f385bef28e64d2423f970e40f4ce86cc Mon Sep 17 00:00:00 2001 From: Joshua Hesketh Date: Tue, 17 Dec 2013 15:09:40 +1100 Subject: [PATCH] fix dash in warning message Change-Id: I2347fed8ad571b7e7cb17dffabe5de010c34c40f --- .../task_plugins/gate_real_db_upgrade/test_handle_results.py | 4 ++-- .../task_plugins/gate_real_db_upgrade/handle_results.py | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/task_plugins/gate_real_db_upgrade/test_handle_results.py b/tests/task_plugins/gate_real_db_upgrade/test_handle_results.py index 569bfba..72776c0 100644 --- a/tests/task_plugins/gate_real_db_upgrade/test_handle_results.py +++ b/tests/task_plugins/gate_real_db_upgrade/test_handle_results.py @@ -77,8 +77,8 @@ class TestHandleResults(testtools.TestCase): result, msg = handle_results.check_log_for_errors(logfile, gitpath, dataset_config) self.assertFalse(result) - self.assertEqual(msg, ('WARNING: Migration 152 took too long, ' - 'WARNING: Migration 152 took too long')) + self.assertEqual(msg, ('WARNING - Migration 152 took too long, ' + 'WARNING - Migration 152 took too long')) dataset_config['maximum_migration_times']['152'] = 10 result, msg = handle_results.check_log_for_errors(logfile, gitpath, diff --git a/turbo_hipster/task_plugins/gate_real_db_upgrade/handle_results.py b/turbo_hipster/task_plugins/gate_real_db_upgrade/handle_results.py index 4cbc701..581410a 100644 --- a/turbo_hipster/task_plugins/gate_real_db_upgrade/handle_results.py +++ b/turbo_hipster/task_plugins/gate_real_db_upgrade/handle_results.py @@ -127,7 +127,7 @@ def check_log_for_errors(logfile, gitpath, dataset_config): migration_start_time, migration_end_time, dataset_config): - warnings.append("WARNING: Migration %s took too " + warnings.append("WARNING - Migration %s took too " "long" % migration_number_to) elif 'Final schema version is' in line: # Check the final version is as expected