

def Prepare(benchmark_spec):
    'Install Unixbench on the target vm.\n\n  Args:\n    benchmark_spec: The benchmark specification. Contains all data that is\n        required to run the benchmark.\n  '
    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)))

dataset/ETHPy150Open GoogleCloudPlatform/PerfKitBenchmarker/perfkitbenchmarker/linux_benchmarks/unixbench_benchmark.py Prepare/original