def METHOD_NAME(vm, test):
  """Run blazemark test on vm.
  Args:
    vm: VirtualMachine. The VM to run blazemark.
    test: string. The test name to run.
  Returns:
    A list of samples. Each sample if a 4-tuple of (benchmark_name, value, unit,
    metadata).
  """
  out, _ = vm.RemoteCommand(
      'cd %s; export BLAZE_NUM_THREADS=%s; ./%s -only-blaze' % (
          os.path.join(BLAZEMARK_DIR, 'bin'), vm.NumCpusForBenchmark(), test))
  ret = []
  try:
    ret = _ParseResult(out, test)
  except regex_util.NoMatchError:
    logging.exception('Parsing failed for %s.\n', test)
  return ret