fix dash in warning message
Change-Id: I2347fed8ad571b7e7cb17dffabe5de010c34c40f
This commit is contained in:
parent
18ac7140ef
commit
47caf5f3f3
@ -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,
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user