aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/rebaseline.py
diff options
context:
space:
mode:
authorGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-11 16:24:37 +0000
committerGravatar epoger@google.com <epoger@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-06-11 16:24:37 +0000
commitcc2e1cf13cfcd66e601e82ae8e3e5d04c87b0964 (patch)
treefb22e994b968e81d930d21165ae0abd5d3991370 /tools/rebaseline.py
parentbda4e91596b88b51ae341ff153e2224a058eee1a (diff)
rebaseline.py: improve readability of dry-run output
Split off of already-reviewed https://codereview.chromium.org/15789010/ ('rebaseline.py: --tests and --configs are now FILTERS within json results') Review URL: https://codereview.chromium.org/16509006 git-svn-id: http://skia.googlecode.com/svn/trunk@9507 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'tools/rebaseline.py')
-rwxr-xr-xtools/rebaseline.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tools/rebaseline.py b/tools/rebaseline.py
index 4deeb350f1..5e8e15fbad 100755
--- a/tools/rebaseline.py
+++ b/tools/rebaseline.py
@@ -159,6 +159,9 @@ class Rebaseliner(object):
# results (those for which we don't have any expectations yet)
# should be rebaselined. For now, we only return failed expectations.
def _GetFilesToRebaseline(self, json_url):
+ if self._dry_run:
+ print ''
+ print '#'
print ('# Getting files to rebaseline from JSON summary URL %s ...'
% json_url)
try:
@@ -180,11 +183,15 @@ class Rebaseliner(object):
files_to_rebaseline.extend(failed_results.keys())
print '# ... found files_to_rebaseline %s' % files_to_rebaseline
+ if self._dry_run:
+ print '#'
return files_to_rebaseline
# Rebaseline a single file.
def _RebaselineOneFile(self, expectations_subdir, builder_name,
infilename, outfilename):
+ if self._dry_run:
+ print ''
print '# ' + infilename
url = ('http://skia-autogen.googlecode.com/svn/gm-actual/' +
expectations_subdir + '/' + builder_name + '/' +
@@ -234,6 +241,8 @@ class Rebaseliner(object):
else:
configs = [ '565', '8888', 'gpu', 'pdf', 'mesa', 'msaa16',
'msaa4' ]
+ if self._dry_run:
+ print ''
print '# ' + expectations_subdir + ':'
for config in configs:
infilename = test + '_' + config + '.png'