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

Unified Diff: sp/gen-auto-rebaseline

Issue 1129173006: Enable slimming paint by default (for trybots only) (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Fri Jun 19 16:39:28 PDT 2015 Created 5 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py ('k') | sp/gen-expectations » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sp/gen-auto-rebaseline
diff --git a/sp/gen-auto-rebaseline b/sp/gen-auto-rebaseline
new file mode 100755
index 0000000000000000000000000000000000000000..9b72f83acb2513f3f6a56bb823683a66f39ccb16
--- /dev/null
+++ b/sp/gen-auto-rebaseline
@@ -0,0 +1,25 @@
+#!/bin/sh
+# Collect recent auto-rebaselines of base tests and generate NeedsRebaseline
+# for slimming paint.
+cd `dirname $0`/..
+git remote update
+revisions=$(git log $(cat sp/last-auto-rebaseline)..origin/master --reverse --grep Auto-rebaseline --format=oneline|awk '{print $1}')
+declare -A tests
+for i in $revisions; do
+ for t in `git show $i LayoutTests/TestExpectations | grep "^-[cB].*NeedsRebaseline" |
+ sed 's/\[[^]]*\]//g' | awk '{print $2}'`; do
+ if [[ $t == virtual/slimmingpaint/* ]]; then
+ unset tests[$t]
+ elif [[ $t != virtual/* ]]; then
+ tests[virtual/slimmingpaint/$t]=
+ fi
+ done
+ last=$i
+done
+for i in ${!tests[@]}; do
+ echo "Bug(wangxianzhu) $i [ NeedsRebaseline ]"
+done | sort
+if [ "$last" == "" ]; then
+ last=`git log origin/master~1..origin/master | awk '{print $1}'`
+fi
+echo $last >sp/last-auto-rebaseline
« no previous file with comments | « Tools/Scripts/webkitpy/layout_tests/run_webkit_tests.py ('k') | sp/gen-expectations » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698