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

Side by Side Diff: tools/rebaseline.py

Issue 14581014: Update rebaseline.py for N10. (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 7 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 | Annotate | Revision Log
« 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/python 1 #!/usr/bin/python
2 2
3 ''' 3 '''
4 Copyright 2012 Google Inc. 4 Copyright 2012 Google Inc.
5 5
6 Use of this source code is governed by a BSD-style license that can be 6 Use of this source code is governed by a BSD-style license that can be
7 found in the LICENSE file. 7 found in the LICENSE file.
8 ''' 8 '''
9 9
10 ''' 10 '''
(...skipping 18 matching lines...) Expand all
29 ['base-macmini-lion-float', 29 ['base-macmini-lion-float',
30 'Test-Mac10.7-MacMini4.1-GeForce320M-x86-Release'], 30 'Test-Mac10.7-MacMini4.1-GeForce320M-x86-Release'],
31 ['base-android-galaxy-nexus', 31 ['base-android-galaxy-nexus',
32 'Test-Android-GalaxyNexus-SGX540-Arm7-Debug'], 32 'Test-Android-GalaxyNexus-SGX540-Arm7-Debug'],
33 ['base-android-nexus-7', 33 ['base-android-nexus-7',
34 'Test-Android-Nexus7-Tegra3-Arm7-Release'], 34 'Test-Android-Nexus7-Tegra3-Arm7-Release'],
35 ['base-android-nexus-s', 35 ['base-android-nexus-s',
36 'Test-Android-NexusS-SGX540-Arm7-Release'], 36 'Test-Android-NexusS-SGX540-Arm7-Release'],
37 ['base-android-xoom', 37 ['base-android-xoom',
38 'Test-Android-Xoom-Tegra2-Arm7-Release'], 38 'Test-Android-Xoom-Tegra2-Arm7-Release'],
39 ['base-android-nexus-10',
40 'Test-Android-Nexus10-MaliT604-Arm7-Release'],
39 ] 41 ]
40 42
41 if len(sys.argv) < 2: 43 if len(sys.argv) < 2:
42 print 'Usage: ' + os.path.basename(sys.argv[0]) + ' <testname> ' 44 print 'Usage: ' + os.path.basename(sys.argv[0]) + ' <testname> '
43 '[ <testname> ... ]' 45 '[ <testname> ... ]'
44 exit(1) 46 exit(1)
45 47
46 is_svn_checkout = os.path.exists('.svn') or os.path.exists(os.path.join('..', '. svn') ) 48 is_svn_checkout = os.path.exists('.svn') or os.path.exists(os.path.join('..', '. svn') )
47 is_git_checkout = os.path.exists('.git') or os.path.exists(os.path.join('..', '. git')) 49 is_git_checkout = os.path.exists('.git') or os.path.exists(os.path.join('..', '. git'))
48 50
(...skipping 19 matching lines...) Expand all
68 cmd = [ 'cp', temp.name, outfilename ] 70 cmd = [ 'cp', temp.name, outfilename ]
69 subprocess.call(cmd); 71 subprocess.call(cmd);
70 if is_svn_checkout: 72 if is_svn_checkout:
71 cmd = [ 'svn', 'add', '--quiet', outfilename ] 73 cmd = [ 'svn', 'add', '--quiet', outfilename ]
72 subprocess.call(cmd) 74 subprocess.call(cmd)
73 cmd = [ 'svn', 'propset', '--quiet', 'svn:mime-type', 'image/png ', outfilename ]; 75 cmd = [ 'svn', 'propset', '--quiet', 'svn:mime-type', 'image/png ', outfilename ];
74 subprocess.call(cmd) 76 subprocess.call(cmd)
75 elif is_git_checkout: 77 elif is_git_checkout:
76 cmd = [ 'git', 'add', outfilename ] 78 cmd = [ 'git', 'add', outfilename ]
77 subprocess.call(cmd) 79 subprocess.call(cmd)
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