From: bungeman Date: Wed, 10 Dec 2014 20:18:03 +0000 (-0800) Subject: Remove MULTILINE, ^, and $ from re finding actual_results.json. X-Git-Tag: accepted/tizen/5.0/unified/20181102.025319~4501 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=5bec916cf676bbb2b48b3827d93107c28d770bbe;p=platform%2Fupstream%2FlibSkiaSharp.git Remove MULTILINE, ^, and $ from re finding actual_results.json. MULTILINE, ^, and $ work based on the platform, but the files being parsed are from other platforms. As a result, the current code for extracting the actual_results.json version will not find it in logfiles produced on Windows when run on Mac. The code for extracting the exact actual_results.json file to use from a logfile is itself something of a hack, as this information should be provided ina more structured manner. This proposed method of finding the exact file is no worse than the old one, and in cases like above, better. Review URL: https://codereview.chromium.org/789253002 --- diff --git a/gm/rebaseline_server/download_actuals.py b/gm/rebaseline_server/download_actuals.py index ae16770..0e60289 100755 --- a/gm/rebaseline_server/download_actuals.py +++ b/gm/rebaseline_server/download_actuals.py @@ -162,8 +162,8 @@ class RietveldIssueActuals(object): """ result = dict() json_filename_re = re.compile( - '^Created: gs://([^/]+)/((?:[^/]+/)+%s)#(\d+)$' - % re.escape(self._json_filename), re.MULTILINE) + 'Created: gs://([^/]+)/((?:[^/]+/)+%s)#(\d+)' + % re.escape(self._json_filename)) codereview_api_url = 'https://codereview.chromium.org/api' upload_gm_step_url = '/steps/Upload GM Results/logs/stdio'