[lldb] Move builders under lldbsuite.test as they import lldbtest (NFC)
authorJonas Devlieghere <jonas@devlieghere.com>
Wed, 19 Aug 2020 16:05:11 +0000 (09:05 -0700)
committerJonas Devlieghere <jonas@devlieghere.com>
Wed, 19 Aug 2020 16:07:51 +0000 (09:07 -0700)
lldb/packages/Python/lldbsuite/test/builders/__init__.py [moved from lldb/packages/Python/lldbsuite/builders/__init__.py with 93% similarity]
lldb/packages/Python/lldbsuite/test/builders/builder.py [moved from lldb/packages/Python/lldbsuite/builders/builder.py with 100% similarity]
lldb/packages/Python/lldbsuite/test/builders/darwin.py [moved from lldb/packages/Python/lldbsuite/builders/darwin.py with 100% similarity]
lldb/packages/Python/lldbsuite/test/lldbtest.py

@@ -5,12 +5,12 @@ Platform specific builders can override methods in the Builder base class. The
 factory method below hands out builders based on the given platform.
 """
 
-from .builder import Builder
-
 
 def get_builder(platform):
   """Returns a Builder instance for the given platform."""
   if platform == 'darwin':
     from .darwin import BuilderDarwin
     return BuilderDarwin()
+
+  from .builder import Builder
   return Builder()
index 21e112a..de9a9a2 100644 (file)
@@ -65,9 +65,9 @@ from . import lldbplatformutil
 from . import lldbtest_config
 from . import lldbutil
 from . import test_categories
-from lldbsuite.builders import get_builder
 from lldbsuite.support import encoded_file
 from lldbsuite.support import funcutils
+from lldbsuite.test.builders import get_builder
 
 # See also dotest.parseOptionsAndInitTestdirs(), where the environment variables
 # LLDB_COMMAND_TRACE is set from '-t' option.