diff options
| author | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:12:36 +0000 | 
|---|---|---|
| committer | Dimitry Andric <dim@FreeBSD.org> | 2017-12-18 20:12:36 +0000 | 
| commit | ef5d0b5e97ec8e6fa395d377b09aa7755e345b4f (patch) | |
| tree | 27916256fdeeb57d10d2f3d6948be5d71a703215 /packages/Python/lldbsuite/test/lldbtest.py | |
| parent | 76e0736e7fcfeb179779e49c05604464b1ccd704 (diff) | |
Notes
Diffstat (limited to 'packages/Python/lldbsuite/test/lldbtest.py')
| -rw-r--r-- | packages/Python/lldbsuite/test/lldbtest.py | 31 | 
1 files changed, 4 insertions, 27 deletions
| diff --git a/packages/Python/lldbsuite/test/lldbtest.py b/packages/Python/lldbsuite/test/lldbtest.py index f1d65cf2076db..ecc38f3554366 100644 --- a/packages/Python/lldbsuite/test/lldbtest.py +++ b/packages/Python/lldbsuite/test/lldbtest.py @@ -706,7 +706,7 @@ class Base(unittest2.TestCase):          # This function removes all files from the current working directory while leaving          # the directories in place. The cleaup is required to reduce the disk space required -        # by the test suit while leaving the directories untached is neccessary because +        # by the test suite while leaving the directories untouched is neccessary because          # sub-directories might belong to an other test          def clean_working_directory():              # TODO: Make it working on Windows when we need it for remote debugging support @@ -1371,10 +1371,9 @@ class Base(unittest2.TestCase):          self.dumpSessionInfo()."""          arch = self.getArchitecture()          comp = self.getCompiler() +        option_str = ""          if arch:              option_str = "-A " + arch -        else: -            option_str = ""          if comp:              option_str += " -C " + comp          return option_str @@ -1511,6 +1510,7 @@ class Base(unittest2.TestCase):              clean=True):          """Platform specific way to build binaries with dsym info."""          module = builder_module() +        dictionary = lldbplatformutil.finalize_build_dictionary(dictionary)          if not module.buildDsym(                  self,                  architecture, @@ -1561,6 +1561,7 @@ class Base(unittest2.TestCase):              clean=True):          """Platform specific way to build binaries with gmodules info."""          module = builder_module() +        dictionary = lldbplatformutil.finalize_build_dictionary(dictionary)          if not module.buildGModules(                  self,                  architecture, @@ -1833,30 +1834,6 @@ class TestBase(Base):      # Can be overridden by the LLDB_TIME_WAIT_NEXT_LAUNCH environment variable.      timeWaitNextLaunch = 1.0 -    # Returns the list of categories to which this test case belongs -    # by default, look for a ".categories" file, and read its contents -    # if no such file exists, traverse the hierarchy - we guarantee -    # a .categories to exist at the top level directory so we do not end up -    # looping endlessly - subclasses are free to define their own categories -    # in whatever way makes sense to them -    def getCategories(self): -        import inspect -        import os.path -        folder = inspect.getfile(self.__class__) -        folder = os.path.dirname(folder) -        while folder != '/': -            categories_file_name = os.path.join(folder, ".categories") -            if os.path.exists(categories_file_name): -                categories_file = open(categories_file_name, 'r') -                categories = categories_file.readline() -                categories_file.close() -                categories = str.replace(categories, '\n', '') -                categories = str.replace(categories, '\r', '') -                return categories.split(',') -            else: -                folder = os.path.dirname(folder) -                continue -      def generateSource(self, source):          template = source + '.template'          temp = os.path.join(os.getcwd(), template) | 
