parameters: (title, format=None, msvs_version=None)
return_statement: return 0
docstring: Run the gyp tests for a given format, emitting annotator tags.
  
    See annotator docs at:
      https://sites.google.com/a/chromium.org/dev/developers/testing/chromium-build-infrastructure/buildbot-annotations
    Args:
      format: gyp format to test.
    Returns:
      0 for sucesss, 1 for failure.
docstring_summary: Run the gyp tests for a given format, emitting annotator tags.
docstring_tokens: Run the gyp tests for a given format emitting annotator tags .
function: def GypTestFormat(title, format=None, msvs_version=None):
    """Run the gyp tests for a given format, emitting annotator tags.
  
    See annotator docs at:
      https://sites.google.com/a/chromium.org/dev/developers/testing/chromium-build-infrastructure/buildbot-annotations
    Args:
      format: gyp format to test.
    Returns:
      0 for sucesss, 1 for failure.
    """
    if not format:
      format = title
  
    print '@@@BUILD_STEP ' + title + '@@@'
    sys.stdout.flush()
    env = os.environ.copy()
    if msvs_version:
      env['GYP_MSVS_VERSION'] = msvs_version
    command = ' '.join(
        [sys.executable, 'trunk/gyptest.py',
         '--all',
         '--passed',
         '--format', format,
         '--path', CMAKE_BIN_DIR,
         '--chdir', 'trunk'])
    if format == 'android':
      # gyptest needs the environment setup from envsetup/lunch in order to build
      # using the 'android' backend, so this is done in a single shell.
      retcode = subprocess.call(
          ['/bin/bash',
           '-c', 'source build/envsetup.sh && lunch full-eng && cd %s && %s'
           % (ROOT_DIR, command)],
          cwd=ANDROID_DIR, env=env)
    else:
      retcode = subprocess.call(command, cwd=ROOT_DIR, env=env, shell=True)
    if retcode:
      # Emit failure tag, and keep going.
      print '@@@STEP_FAILURE@@@'
      return 1
    return 0
function_tokens: def GypTestFormat ( title , format = None , msvs_version = None ) : if not format : format = title print '@@@BUILD_STEP ' + title + '@@@' sys . stdout . flush ( ) env = os . environ . copy ( ) if msvs_version : env [ 'GYP_MSVS_VERSION' ] = msvs_version command = ' ' . join ( [ sys . executable , 'trunk/gyptest.py' , '--all' , '--passed' , '--format' , format , '--path' , CMAKE_BIN_DIR , '--chdir' , 'trunk' ] ) if format == 'android' : # gyptest needs the environment setup from envsetup/lunch in order to build # using the 'android' backend, so this is done in a single shell. retcode = subprocess . call ( [ '/bin/bash' , '-c' , 'source build/envsetup.sh && lunch full-eng && cd %s && %s' % ( ROOT_DIR , command ) ] , cwd = ANDROID_DIR , env = env ) else : retcode = subprocess . call ( command , cwd = ROOT_DIR , env = env , shell = True ) if retcode : # Emit failure tag, and keep going. print '@@@STEP_FAILURE@@@' return 1 return 0