# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

""" Verifies that the configuration for each BuildFactory matches its
expectation. """


import os
import sys

sys.path.append('master')
sys.path.append('site_config')
sys.path.append(os.path.join('third_party', 'chromium_buildbot', 'scripts'))
sys.path.append(os.path.join('third_party', 'chromium_buildbot', 'site_config'))
sys.path.append(os.path.join('third_party', 'chromium_buildbot', 'third_party',
                             'buildbot_8_4p1'))

import config
import config_private
import master_builders_cfg


def main():
  c = {}
  c['schedulers'] = []
  c['builders'] = []

  # Make sure that the configuration errors out if validation fails.
  config_private.die_on_validation_failure = True

  # Pretend that the master is the production master, so that the tested
  # configuration is identical to that of the production master.
  config.Master.Skia.is_production_host = True

  # Run the configuration.
  master_builders_cfg.Update(config, config.Master.Skia, c)


if '__main__' == __name__:
  sys.exit(main())
# Copyright (c) 2013 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

""" Verifies that the configuration for each BuildFactory matches its
expectation. """


import os
import sys

buildbot_path = os.path.join(os.path.abspath(os.path.dirname(__file__)),
                             os.pardir, os.pardir, os.pardir)
sys.path.append(os.path.join(buildbot_path, 'master'))
sys.path.append(os.path.join(buildbot_path, 'site_config'))
sys.path.append(os.path.join(buildbot_path, 'third_party', 'chromium_buildbot',
                             'scripts'))
sys.path.append(os.path.join(buildbot_path, 'third_party', 'chromium_buildbot',
                             'site_config'))
sys.path.append(os.path.join(buildbot_path, 'third_party', 'chromium_buildbot',
                             'third_party', 'buildbot_8_4p1'))

import config
import config_private
import master_builders_cfg


def main():
  c = {}
  c['schedulers'] = []
  c['builders'] = []

  # Make sure that the configuration errors out if validation fails.
  config_private.die_on_validation_failure = True

  # Pretend that the master is the production master, so that the tested
  # configuration is identical to that of the production master.
  config.Master.Skia.is_production_host = True

  # Run the configuration.
  master_builders_cfg.Update(config, config.Master.Skia, c)


if '__main__' == __name__:
  sys.exit(main())
Update factory configuration test to work independently of working directory
Update factory configuration test to work independently of working directory

(SkipBuildbotRuns)

R=rmistry@google.com

Review URL: https://codereview.chromium.org/15317003

git-svn-id: 32fc27f4dcfb6c0385cd9719852b95fe6680452d@9186 2bbb7eff-a529-9590-31e7-b0007b416f81
