blob: ef444054a4bf4c746aafe8bb06319680b16998e5 [file] [log] [blame]
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
"""Unittests for config. Needs to be run inside of chroot for mox."""
import mox
import sys
import unittest
import constants
import chromite.buildbot.cbuildbot_config as config
class CBuildBotTest(mox.MoxTestBase):
def setUp(self):
def testConfigUseflags(self):
""" Useflags must be lists.
Strings are interpreted as arrays of characters for this, which is not
for x in config.config:
useflags = config.config[x].get('useflags')
if not useflags is None:
isinstance(useflags, list),
'Config for %s: useflags should be a list.' % x)
if __name__ == '__main__':