[Webkit-unassigned] [Bug 145582] streamline benchmark-runner browser

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 2 18:08:38 PDT 2015


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

--- Comment #3 from Stephanie Lewis <slewis at apple.com> ---
(In reply to comment #2)
> Comment on attachment 254127 [details]
> patch
> 
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=254127&action=review
> 
> > Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_browser_driver.py:32
> > +        process = subprocess.Popen(['open', '-a', appPath] + args)
> > +        cls.launchCaffeinateForProcess(process.pid)
> 
> Instead of having a helper function to launch caffinate, why don't we add a
> method e.g. launchProcessWithCaffinate that launches both the target process
> and caffeinate?
> 
> > Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_browser_driver.py:43
> > +        subprocess.Popen(["/usr/bin/caffeinate", "-disw", str(pid)])
> 
> Does caffeinate automatically terminate?

Yeah Caffeinate takes the pid of a process to watch and terminates when the process terminates.

> 
> > Tools/Scripts/webkitpy/benchmark_runner/browser_driver/osx_safari_driver.py:39
> > +        self.safariProcess = subprocess.Popen(args, env=env)
> > +
> > +        OSXSafariDriver.launchCaffeinateForProcess(self.safariProcess.pid)
> 
> That way, we can just call that function instead of Popen'ing and calling a
> separate helper function.

-- 
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/20150603/6edb5764/attachment.html>


More information about the webkit-unassigned mailing list