[lldb] [test] Rename '.categories' to 'categories'
authorMichał Górny <mgorny@moritz.systems>
Mon, 9 Nov 2020 11:05:54 +0000 (12:05 +0100)
committerMichał Górny <mgorny@moritz.systems>
Tue, 10 Nov 2020 11:02:38 +0000 (12:02 +0100)
Make category-specifying files visible.  There is really no good reason
to keep them hidden, and having them visible increases the chances
that someone will actually spot them.

Differential Revision: https://reviews.llvm.org/D91065

34 files changed:
lldb/packages/Python/lldbsuite/test/test_result.py
lldb/test/API/api/multiple-debuggers/categories [moved from lldb/test/API/api/multiple-debuggers/.categories with 100% similarity]
lldb/test/API/commands/command/categories [moved from lldb/test/API/functionalities/wrong_commands/.categories with 100% similarity]
lldb/test/API/commands/expression/categories [moved from lldb/test/API/commands/expression/.categories with 100% similarity]
lldb/test/API/commands/expression/completion/categories [moved from lldb/test/API/functionalities/completion/.categories with 100% similarity]
lldb/test/API/commands/expression/import-std-module/categories [moved from lldb/test/API/commands/expression/import-std-module/.categories with 100% similarity]
lldb/test/API/commands/frame/recognizer/categories [moved from lldb/test/API/macosx/nslog/.categories with 100% similarity]
lldb/test/API/commands/watchpoints/categories [moved from lldb/test/API/python_api/watchpoint/.categories with 100% similarity]
lldb/test/API/functionalities/abbreviation/categories [moved from lldb/test/API/functionalities/backticks/.categories with 100% similarity]
lldb/test/API/functionalities/alias/categories [moved from lldb/test/API/functionalities/alias/.categories with 100% similarity]
lldb/test/API/functionalities/asan/categories [moved from lldb/test/API/functionalities/ubsan/.categories with 100% similarity]
lldb/test/API/functionalities/backticks/categories [moved from lldb/test/API/functionalities/abbreviation/.categories with 100% similarity]
lldb/test/API/functionalities/completion/categories [moved from lldb/test/API/commands/expression/completion/.categories with 100% similarity]
lldb/test/API/functionalities/darwin_log/categories [moved from lldb/test/API/functionalities/darwin_log/.categories with 100% similarity]
lldb/test/API/functionalities/data-formatter/categories [moved from lldb/test/API/lang/cpp/wchar_t/.categories with 100% similarity]
lldb/test/API/functionalities/data-formatter/data-formatter-objc/categories [moved from lldb/test/API/lang/objcxx/.categories with 100% similarity]
lldb/test/API/functionalities/load_unload/categories [moved from lldb/test/API/lang/c/step-target/.categories with 100% similarity]
lldb/test/API/functionalities/load_using_paths/categories [moved from lldb/test/API/functionalities/thread/step_until/.categories with 100% similarity]
lldb/test/API/functionalities/mtc/categories [moved from lldb/test/API/functionalities/tsan/.categories with 100% similarity]
lldb/test/API/functionalities/thread/step_until/categories [moved from lldb/test/API/functionalities/load_using_paths/.categories with 100% similarity]
lldb/test/API/functionalities/tsan/categories [moved from lldb/test/API/functionalities/mtc/.categories with 100% similarity]
lldb/test/API/functionalities/ubsan/categories [moved from lldb/test/API/functionalities/asan/.categories with 100% similarity]
lldb/test/API/functionalities/wrong_commands/categories [moved from lldb/test/API/commands/command/.categories with 100% similarity]
lldb/test/API/lang/c/step-target/categories [moved from lldb/test/API/functionalities/load_unload/.categories with 100% similarity]
lldb/test/API/lang/cpp/char1632_t/categories [moved from lldb/test/API/lang/cpp/char1632_t/.categories with 100% similarity]
lldb/test/API/lang/cpp/wchar_t/categories [moved from lldb/test/API/functionalities/data-formatter/.categories with 100% similarity]
lldb/test/API/lang/objc/categories [moved from lldb/test/API/lang/objc/.categories with 100% similarity]
lldb/test/API/lang/objc/objc-dyn-sbtype/categories [moved from lldb/test/API/lang/objc/objc-dyn-sbtype/.categories with 100% similarity]
lldb/test/API/lang/objcxx/categories [moved from lldb/test/API/functionalities/data-formatter/data-formatter-objc/.categories with 100% similarity]
lldb/test/API/macosx/nslog/categories [moved from lldb/test/API/commands/frame/recognizer/.categories with 100% similarity]
lldb/test/API/python_api/categories [moved from lldb/test/API/python_api/.categories with 100% similarity]
lldb/test/API/python_api/watchpoint/categories [moved from lldb/test/API/commands/watchpoints/.categories with 100% similarity]
lldb/test/API/tools/lldb-server/categories [moved from lldb/test/API/tools/lldb-server/.categories with 100% similarity]
lldb/test/API/tools/lldb-vscode/categories [moved from lldb/test/API/tools/lldb-vscode/.categories with 100% similarity]

index cab446d..ff01b21 100644 (file)
@@ -112,7 +112,7 @@ class LLDBTestResult(unittest2.TextTestResult):
     def _getFileBasedCategories(self, test):
         """
         Returns the list of categories to which this test case belongs by
-        collecting values of ".categories" files. We start at the folder the test is in
+        collecting values of "categories" files. We start at the folder the test is in
         and traverse the hierarchy upwards until the test-suite root directory.
         """
         start_path = self._getTestPath(test)
@@ -126,7 +126,7 @@ class LLDBTestResult(unittest2.TextTestResult):
 
         categories = set()
         while not os.path.samefile(folder, test_root):
-            categories_file_name = os.path.join(folder, ".categories")
+            categories_file_name = os.path.join(folder, "categories")
             if os.path.exists(categories_file_name):
                 categories_file = open(categories_file_name, 'r')
                 categories_str = categories_file.readline().strip()