[Lldb-commits] [lldb] ab76189 - [lldb] Use lit_config.note to print module cache message

Jonas Devlieghere via lldb-commits lldb-commits at lists.llvm.org
Fri Jan 7 13:35:24 PST 2022


Author: Jonas Devlieghere
Date: 2022-01-07T13:35:18-08:00
New Revision: ab7618914dec6384f24b30ad2d45b82a51647a33

URL: https://github.com/llvm/llvm-project/commit/ab7618914dec6384f24b30ad2d45b82a51647a33
DIFF: https://github.com/llvm/llvm-project/commit/ab7618914dec6384f24b30ad2d45b82a51647a33.diff

LOG: [lldb] Use lit_config.note to print module cache message

Added: 
    

Modified: 
    lldb/test/API/lit.cfg.py
    lldb/test/Shell/lit.cfg.py

Removed: 
    


################################################################################
diff  --git a/lldb/test/API/lit.cfg.py b/lldb/test/API/lit.cfg.py
index a7a9e4554b177..8120c4f716052 100644
--- a/lldb/test/API/lit.cfg.py
+++ b/lldb/test/API/lit.cfg.py
@@ -98,7 +98,7 @@ def delete_module_cache(path):
   This is necessary in an incremental build whenever clang changes underneath,
   so doing it once per lit.py invocation is close enough. """
   if os.path.isdir(path):
-    print("Deleting module cache at %s." % path)
+    lit_config.note("Deleting module cache at %s." % path)
     shutil.rmtree(path)
 
 if is_configured('llvm_use_sanitizer'):

diff  --git a/lldb/test/Shell/lit.cfg.py b/lldb/test/Shell/lit.cfg.py
index aecd9d62c2144..ccff49194319b 100644
--- a/lldb/test/Shell/lit.cfg.py
+++ b/lldb/test/Shell/lit.cfg.py
@@ -85,7 +85,7 @@ def calculate_arch_features(arch_string):
 # lit.py invocation is close enough.
 for cachedir in [config.clang_module_cache, config.lldb_module_cache]:
   if os.path.isdir(cachedir):
-     print("Deleting module cache at %s."%cachedir)
+     lit_config.note("Deleting module cache at %s."%cachedir)
      shutil.rmtree(cachedir)
 
 # Set a default per-test timeout of 10 minutes. Setting a timeout per test


        


More information about the lldb-commits mailing list