summaryrefslogtreecommitdiff
path: root/lib/cros_test_lib.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/cros_test_lib.py')
-rw-r--r--lib/cros_test_lib.py21
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/cros_test_lib.py b/lib/cros_test_lib.py
index 0ccddbb40..20b3eb50f 100644
--- a/lib/cros_test_lib.py
+++ b/lib/cros_test_lib.py
@@ -29,7 +29,6 @@ import urllib
from chromite.cbuildbot import config_lib
from chromite.cbuildbot import constants
-from chromite.lib import brick_lib
from chromite.lib import cidb
from chromite.lib import commandline
from chromite.lib import cros_build_lib
@@ -1602,26 +1601,6 @@ class WorkspaceTestCase(MockTempDirTestCase):
self.mock_workspace_path = self.PatchObject(
workspace_lib, 'WorkspacePath', return_value=self.workspace_path)
- def CreateBrick(self, name='thebrickfoo', main_package='category/bar',
- dependencies=None):
- """Creates a new brick.
-
- Args:
- name: Brick name/path relative to the workspace root.
- main_package: Main package to assign.
- dependencies: List of bricks to depend on.
-
- Returns:
- The created Brick object.
- """
- brick_path = os.path.join(self.workspace_path, name)
- config = {'name': name, 'main_package': main_package}
- if dependencies:
- config['dependencies'] = dependencies
-
- return brick_lib.Brick(brick_path, initial_config=config)
-
-
@contextlib.contextmanager
def SetTimeZone(tz):
"""Temporarily set the timezone to the specified value.