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

Unified Diff: tools/rebaseline.py

Issue 262703003: mark rebaseline.py as deprecated (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/rebaseline.py
diff --git a/tools/rebaseline.py b/tools/rebaseline.py
index 294a368f140a5e94917540ba36ccfa6fdc42ba23..9870b9003479287497d2b4a34cd7522cfe679ac6 100755
--- a/tools/rebaseline.py
+++ b/tools/rebaseline.py
@@ -396,6 +396,10 @@ parser.add_argument('--configs', metavar='CONFIG', nargs='+',
'"--configs 565 8888", as a filter over the full set '
'of results in ACTUALS_FILENAME; if unspecified, '
'rebaseline *all* configs that are available.'))
+parser.add_argument('--deprecated', action='store_true',
+ help=('run the tool even though it has been deprecated; '
+ 'see http://tinyurl.com/SkiaRebaselineServer for '
+ 'the recommended/supported process'))
parser.add_argument('--expectations-filename',
help=('filename (under EXPECTATIONS_ROOT) to read '
'current expectations from, and to write new '
@@ -446,6 +450,11 @@ parser.add_argument('--skimage', action='store_true',
'and ACTUALS_BASE_URL and EXPECTATIONS_ROOT are set '
'to alternate defaults, specific to skimage.'))
args = parser.parse_args()
+if not args.deprecated:
+ raise Exception(
+ 'This tool has been deprecated; see'
+ ' http://tinyurl.com/SkiaRebaselineServer for the recommended/supported'
+ ' process, or re-run with the --deprecated option to press on.')
exception_handler = ExceptionHandler(
keep_going_on_failure=args.keep_going_on_failure)
if args.builders:
« 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