Skip to content

Instantly share code, notes, and snippets.

@thephw
Last active July 25, 2017 03:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thephw/49f46c8b2d06b3230de1a5f094c29250 to your computer and use it in GitHub Desktop.
Save thephw/49f46c8b2d06b3230de1a5f094c29250 to your computer and use it in GitHub Desktop.
Horseshit webkit_server fix
config.after(:suite) do
webkit_server_pid = %x[ps].split("\n").select{|str| str.match /webkit_server/ }.first.to_i
if webkit_server_pid != 0
puts "webkit_server did not quit... killing webkit_server PID ##{webkit_server_pid}"
`kill -9 #{webkit_server_pid}`
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment