Skip to content

Conversation

ZequanWu
Copy link
Contributor

@ZequanWu ZequanWu commented Oct 6, 2025

No description provided.

@ZequanWu ZequanWu requested a review from JDevlieghere as a code owner October 6, 2025 20:28
@llvmbot llvmbot added the lldb label Oct 6, 2025
@llvmbot
Copy link
Member

llvmbot commented Oct 6, 2025

@llvm/pr-subscribers-lldb

Author: Zequan Wu (ZequanWu)

Changes

Full diff: https://github.com/llvm/llvm-project/pull/162153.diff

1 Files Affected:

  • (modified) lldb/packages/Python/lldbsuite/test/dotest.py (+2-1)
diff --git a/lldb/packages/Python/lldbsuite/test/dotest.py b/lldb/packages/Python/lldbsuite/test/dotest.py
index e30d5490bea22..643077405e2ea 100644
--- a/lldb/packages/Python/lldbsuite/test/dotest.py
+++ b/lldb/packages/Python/lldbsuite/test/dotest.py
@@ -300,7 +300,8 @@ def parseOptionsAndInitTestdirs():
             configuration.libcxx_include_target_dir = args.libcxx_include_target_dir
             configuration.libcxx_library_dir = args.libcxx_library_dir
 
-    configuration.cmake_build_type = args.cmake_build_type.lower()
+    if args.cmake_build_type:
+        configuration.cmake_build_type = args.cmake_build_type.lower()
 
     if args.channels:
         lldbtest_config.channels = args.channels

@DavidSpickett
Copy link
Collaborator

In what situation would this be None or empty? LLVM requires that you set CMAKE_BUILD_TYPE to something and even so, it would have a default value. Are you running tests against a pre-built lldb?

if args.cmake_build_type is not None

Being pedantic: being None and being falsey are 2 different things in Python. Here you mean if it's empty.

In this case it's not a big deal but it was surprising to see "is not None" in the title and then no "None" mentioned in the change.

@ZequanWu
Copy link
Contributor Author

ZequanWu commented Oct 8, 2025

NVM, it's just our internal build not setting cmake_build_type.

@ZequanWu ZequanWu closed this Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants