Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(350)

Side by Side Diff: tools/bisect-perf-regression_test.py

Issue 511033002: Fix git log command to while processing Commit position in SVNFindRev method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « tools/auto_bisect/source_control.py ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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()
OLDNEW
« no previous file with comments | « tools/auto_bisect/source_control.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698