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))
test that fetching all of the data returns the correct results
dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/unixbench_benchmark.py/Prepare--crossover with--dataset/ETHPy150Open cloudera/hue/desktop/core/ext-py/cx_Oracle-5.1.2/test/DateTimeVar.py/TestDateTimeVar.testFetchAll