def RunDefaultScript()

in annotated_steps.py [0:0]


def RunDefaultScript(bot_info, test_config, copy_path):
  print "No custom script found, running default steps."

  GetSDK(bot_info)
  print 'Running testing in copy of package in %s' % copy_path
  RunPrePubUpgradeHooks(test_config)
  RunPubUpgrade(bot_info, copy_path)

  test_package = test_config.get_test_package()
  if test_package is None or test_package.get('barback'):
    RunPrePubBuildHooks(test_config)
    RunPubBuild(bot_info, copy_path, 'web')
    RunPubBuild(bot_info, copy_path, 'test', 'debug')
    RunPostPubBuildHooks(test_config)

  if test_package is not None:
    print 'Running the test package runner'
    RunPreTestHooks(test_config)
    RunTestRunner(bot_info, test_package, copy_path)
  else:
    print 'Running tests manually'
    FixupTestControllerJS(copy_path)
    RunPreTestHooks(test_config)
    RunPackageTesting(bot_info, copy_path, 'test')
    # TODO(6): Packages that need barback should use the test package runner,
    # instead of trying to run from the build/test directory.
    RunPackageTesting(bot_info, copy_path, 'build/test')

  RunPostTestHooks(test_config)