rebaseline.py: re-record already succeeding test results, just in case
TBR=borenet
Review URL: https://codereview.chromium.org/19459002
git-svn-id: http://skia.googlecode.com/svn/trunk@10121 2bbb7eff-a529-9590-31e7-b0007b416f81
diff --git a/tools/rebaseline.py b/tools/rebaseline.py
index 4418c30..692cb1a 100755
--- a/tools/rebaseline.py
+++ b/tools/rebaseline.py
@@ -216,7 +216,11 @@
actuals_url = '/'.join([self._actuals_base_url,
subdir, builder, subdir,
self._actuals_filename])
- sections = [gm_json.JSONKEY_ACTUALRESULTS_FAILED]
+ # In most cases, we won't need to re-record results that are already
+ # succeeding, but including the SUCCEEDED results will allow us to
+ # re-record expectations if they somehow get out of sync.
+ sections = [gm_json.JSONKEY_ACTUALRESULTS_FAILED,
+ gm_json.JSONKEY_ACTUALRESULTS_SUCCEEDED]
if self._add_new:
sections.append(gm_json.JSONKEY_ACTUALRESULTS_NOCOMPARISON)
results_to_update = self._GetActualResults(json_url=actuals_url,