[Lldb-commits] [lldb] [lldb] add --platform-available-ports option to the dotest.py (PR #112555)

David Spickett via lldb-commits lldb-commits at lists.llvm.org
Thu Mar 6 05:12:40 PST 2025


================
@@ -185,6 +185,9 @@ def setUpServerLogging(self, is_llgs):
             ]
 
     def get_next_port(self):
+        available_ports = self.getPlatformAvailablePorts()
+        if available_ports:
----------------
DavidSpickett wrote:

We require Python >= 3.8 (https://lldb.llvm.org/resources/build.html#optional-dependencies) so you can use the Walrus operator for this (https://docs.python.org/3/whatsnew/3.8.html#assignment-expressions).

https://github.com/llvm/llvm-project/pull/112555


More information about the lldb-commits mailing list