
import sys

from common import chromium_utils


def main():
  return chromium_utils.RunCommand(
      [sys.executable,
       'src/build/buildbot_annotated_steps.py',
      ])

if __name__ == '__main__':
  sys.exit(main())


import os
import sys

from common import chromium_utils

def main():
  builder_name = os.getenv('BUILDBOT_BUILDERNAME', default='')
  is_release_bot = builder_name.startswith('release')
  script = ''
  if is_release_bot:
    script = 'src/dartium_tools/buildbot_release_annotated_steps.py'
  else:
    script = 'src/dartium_tools/buildbot_annotated_steps.py'

  return chromium_utils.RunCommand([sys.executable, script])

if __name__ == '__main__':
  sys.exit(main())

Call dartium_tools/buildbot_annotated_steps.py directly, there is no need for moving this as part of the dartium patching process.
Call dartium_tools/buildbot_annotated_steps.py directly, there is no need for moving this as part of the dartium patching process.

Additionally, start calling a new script for release builds (there are none yet, but this is what will be used to build the sdk and editor)

TBR=foo

Review URL: https://chromiumcodereview.appspot.com/11466003

git-svn-id: 239fca9b83025a0b6f823aeeca02ba5be3d9fd76@171512 0039d316-1c4b-4281-b951-d872f2087c98

  
+ import os
  import sys
  
  from common import chromium_utils
  
+ def main():
+   builder_name = os.getenv('BUILDBOT_BUILDERNAME', default='')
+   is_release_bot = builder_name.startswith('release')
+   script = ''
+   if is_release_bot:
+     script = 'src/dartium_tools/buildbot_release_annotated_steps.py'
+   else:
+     script = 'src/dartium_tools/buildbot_annotated_steps.py'
  
+   return chromium_utils.RunCommand([sys.executable, script])
- def main():
-   return chromium_utils.RunCommand(
-       [sys.executable,
-        'src/build/buildbot_annotated_steps.py',
-       ])
  
  if __name__ == '__main__':
    sys.exit(main())
  
Call dartium_tools/buildbot_annotated_steps.py directly, there is no need for moving this as part of the dartium patching process.
## Code Before:

import sys

from common import chromium_utils


def main():
  return chromium_utils.RunCommand(
      [sys.executable,
       'src/build/buildbot_annotated_steps.py',
      ])

if __name__ == '__main__':
  sys.exit(main())

## Instruction:
Call dartium_tools/buildbot_annotated_steps.py directly, there is no need for moving this as part of the dartium patching process.
## Code After:

import os
import sys

from common import chromium_utils

def main():
  builder_name = os.getenv('BUILDBOT_BUILDERNAME', default='')
  is_release_bot = builder_name.startswith('release')
  script = ''
  if is_release_bot:
    script = 'src/dartium_tools/buildbot_release_annotated_steps.py'
  else:
    script = 'src/dartium_tools/buildbot_annotated_steps.py'

  return chromium_utils.RunCommand([sys.executable, script])

if __name__ == '__main__':
  sys.exit(main())
