def Prepare(benchmark_spec):
  vms = benchmark_spec.vms
  vm = vms[0]
  logging.info('Unixbench prepare on %s', vm)
  vm.Install('unixbench')

  if FLAGS.unixbench_all_cores:
    vm.PushDataFile(UNIXBENCH_PATCH_FILE)
    vm.RemoteCommand('cp %s %s' %
                     (UNIXBENCH_PATCH_FILE, unixbench.UNIXBENCH_DIR))
    vm.RemoteCommand('cd %s && patch ./Run %s' %
                     (unixbench.UNIXBENCH_DIR, UNIXBENCH_PATCH_FILE))
Install Unixbench on the target vm.
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/unixbench_benchmark.py/Prepare