Pull in system logs from /tmp/flaky_logs.txt

  Minitest.after_run do
    if $driver
      file = '/tmp/flaky_logs.txt'
      begin
        File.open(file, 'w') do |f|
          f.write $driver.driver.manage.logs.get(:logcat).join("\n")
        end
      rescue # we're probably on iOS
        File.open(file, 'w') do |f|
          f.write $driver.driver.manage.logs.get(:syslog).join("\n")
        end
      end
      $driver.x
    end
  end