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

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

Issue 14121017: Create the full path instead of just the leaf directory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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 | « no previous file | 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 #!/usr/bin/env python 1 #!/usr/bin/env python
2 # Copyright (c) 2013 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2013 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 """Performance Test Bisect Tool 6 """Performance Test Bisect Tool
7 7
8 This script bisects a series of changelists using binary search. It starts at 8 This script bisects a series of changelists using binary search. It starts at
9 a bad revision where a performance metric has regressed, and asks for a last 9 a bad revision where a performance metric has regressed, and asks for a last
10 known-good revision. It will then binary search across this revision range by 10 known-good revision. It will then binary search across this revision range by
(...skipping 1466 matching lines...) Expand 10 before | Expand all | Expand 10 after
1477 True if successful, False if an error occurred. 1477 True if successful, False if an error occurred.
1478 """ 1478 """
1479 try: 1479 try:
1480 if os.path.exists(path_to_dir): 1480 if os.path.exists(path_to_dir):
1481 shutil.rmtree(path_to_dir) 1481 shutil.rmtree(path_to_dir)
1482 except OSError, e: 1482 except OSError, e:
1483 if e.errno != errno.ENOENT: 1483 if e.errno != errno.ENOENT:
1484 return False 1484 return False
1485 1485
1486 try: 1486 try:
1487 os.mkdir(path_to_dir) 1487 os.makedirs(path_to_dir)
1488 except OSError, e: 1488 except OSError, e:
1489 if e.errno != errno.EEXIST: 1489 if e.errno != errno.EEXIST:
1490 return False 1490 return False
1491 1491
1492 return True 1492 return True
1493 1493
1494 1494
1495 def RemoveBuildFiles(): 1495 def RemoveBuildFiles():
1496 """Removes build files from previous runs.""" 1496 """Removes build files from previous runs."""
1497 if RmTreeAndMkDir(os.path.join('out', 'Release')): 1497 if RmTreeAndMkDir(os.path.join('out', 'Release')):
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
1656 1656
1657 if not(bisect_results['error']): 1657 if not(bisect_results['error']):
1658 return 0 1658 return 0
1659 else: 1659 else:
1660 print 'Error: ' + bisect_results['error'] 1660 print 'Error: ' + bisect_results['error']
1661 print 1661 print
1662 return 1 1662 return 1
1663 1663
1664 if __name__ == '__main__': 1664 if __name__ == '__main__':
1665 sys.exit(main()) 1665 sys.exit(main())
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698