Bug 800633 - Clean up references to code moved out of mozbuild; r=jhammel

DONTBUILD (NPOTB)
This commit is contained in:
Gregory Szorc 2012-10-11 17:13:18 -07:00
parent 864fcf162c
commit fdb27c7386
2 changed files with 7 additions and 17 deletions

View File

@ -10,5 +10,4 @@ Modules Overview
* mozbuild.compilation -- Functionality related to compiling. This
includes managing compiler warnings.
* mozbuild.testing -- Interfaces for running tests.

View File

@ -9,10 +9,12 @@ import unittest
from tempfile import NamedTemporaryFile
from mozbuild.base import BuildConfig
from mozbuild.base import MozbuildObject
from mozbuild.config import ConfigSettings
from mozbuild.logger import LoggingManager
from mach.logging import LoggingManager
from mozbuild.base import (
BuildConfig,
MozbuildObject,
)
curdir = os.path.dirname(__file__)
@ -20,20 +22,9 @@ topsrcdir = os.path.normpath(os.path.join(curdir, '..', '..', '..', '..'))
log_manager = LoggingManager()
class TestBuildConfig(unittest.TestCase):
def test_basic(self):
c = ConfigSettings()
c.register_provider(BuildConfig)
c.build.threads = 6
class TestMozbuildObject(unittest.TestCase):
def get_base(self):
settings = ConfigSettings()
settings.register_provider(BuildConfig)
return MozbuildObject(topsrcdir, settings, log_manager)
return MozbuildObject(topsrcdir, None, log_manager)
def test_mozconfig_parsing(self):
with NamedTemporaryFile(mode='wt') as mozconfig: