OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import os | 5 import os |
6 import unittest | 6 import unittest |
7 | 7 |
8 from auto_bisect import source_control as source_control_module | 8 from auto_bisect import source_control as source_control_module |
9 | 9 |
10 # Special import necessary because filename contains dash characters. | 10 # Special import necessary because filename contains dash characters. |
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
258 'command': 'fake_command', | 258 'command': 'fake_command', |
259 'metric': 'fake/metric', | 259 'metric': 'fake/metric', |
260 'good_revision': 280000, | 260 'good_revision': 280000, |
261 'bad_revision': 280005, | 261 'bad_revision': 280005, |
262 } | 262 } |
263 bisect_options = bisect_perf_module.BisectOptions.FromDict(options_dict) | 263 bisect_options = bisect_perf_module.BisectOptions.FromDict(options_dict) |
264 source_control = source_control_module.DetermineAndCreateSourceControl( | 264 source_control = source_control_module.DetermineAndCreateSourceControl( |
265 bisect_options) | 265 bisect_options) |
266 | 266 |
267 cp_git_rev = '7017a81991de983e12ab50dfc071c70e06979531' | 267 cp_git_rev = '7017a81991de983e12ab50dfc071c70e06979531' |
268 self.assertEqual(291915, source_control.SVNFindRev(cp_git_rev)) | 268 self.assertEqual(291765, source_control.SVNFindRev(cp_git_rev)) |
269 | 269 |
270 svn_git_rev = 'e6db23a037cad47299a94b155b95eebd1ee61a58' | 270 svn_git_rev = 'e6db23a037cad47299a94b155b95eebd1ee61a58' |
271 self.assertEqual(291467, source_control.SVNFindRev(svn_git_rev)) | 271 self.assertEqual(291467, source_control.SVNFindRev(svn_git_rev)) |
272 | 272 |
273 if __name__ == '__main__': | 273 if __name__ == '__main__': |
274 unittest.main() | 274 unittest.main() |
OLD | NEW |