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

Unified Diff: gm/rebaseline_server/compare_to_expectations.py

Issue 210093003: fix compare_to_expectations command line launch (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 9 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: gm/rebaseline_server/compare_to_expectations.py
diff --git a/gm/rebaseline_server/compare_to_expectations.py b/gm/rebaseline_server/compare_to_expectations.py
index f047b7b2911e7afbf197e128da9abcda62949c2c..e0fa23fb2d6556a4d4dc26e21ced87f9ef6871f0 100755
--- a/gm/rebaseline_server/compare_to_expectations.py
+++ b/gm/rebaseline_server/compare_to_expectations.py
@@ -466,7 +466,8 @@ def main():
parser = argparse.ArgumentParser()
parser.add_argument(
'--actuals', default=DEFAULT_ACTUALS_DIR,
- help='Directory containing all actual-result JSON files')
+ help='Directory containing all actual-result JSON files; defaults to '
+ '\'%(default)s\' .')
parser.add_argument(
'--expectations', default=DEFAULT_EXPECTATIONS_DIR,
help='Directory containing all expected-result JSON files; defaults to '
@@ -485,11 +486,11 @@ def main():
help='Directory within which to download images and generate diffs; '
'defaults to \'%(default)s\' .')
args = parser.parse_args()
- results = Results(actuals_root=args.actuals,
- expected_root=args.expectations,
- generated_images_root=args.workdir)
+ results_obj = Results(actuals_root=args.actuals,
+ expected_root=args.expectations,
+ generated_images_root=args.workdir)
gm_json.WriteToFile(
- results.get_packaged_results_of_type(results_type=args.results),
+ results_obj.get_packaged_results_of_type(results_type=args.results),
args.outfile)
« 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