def GatherResults(vm, out_file):
  """Gets the contents of out_file from vm.

  Args:
    vm: the VM to get the results from.
    out_file: the name of the file that contains results.

  Returns:
    The contents of 'out_file' as a string.
  """
  cat_command = 'cd {results_dir}; cat {out_file}'
  results_command = cat_command.format(results_dir=vm.temp_dir,
                                       out_file=out_file)
  results, _ = vm.RemoteCommand(results_command)
  return results