[Webkit-unassigned] [Bug 147800] Make run-benchmark cleanup more robust and minor code cleaning

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Aug 10 15:23:12 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=147800

--- Comment #12 from dewei_zhu at apple.com ---
Comment on attachment 258655
  --> https://bugs.webkit.org/attachment.cgi?id=258655
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=258655&action=review

>> Tools/Scripts/webkitpy/benchmark_runner/benchmark_runner.py:90
>> +        self._web_root = benchmark_builder.prepare(self._plan_name, self._plan)
> 
> This shouldn't be an instance variable since it's only used within _run_benchmark.
> It should be an argument to _run_benchmark instead.
> 
> It's also strange that BenchmarkBuilder constructor takes no value and we have to call prepare separately.
> We should combine these two and use "with" statement instead of manually calling clean() below.

Good idea!

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150810/0da83c37/attachment.html>


More information about the webkit-unassigned mailing list