aboutsummaryrefslogtreecommitdiff
path: root/lldb/packages/Python/lldbsuite/test/lldbtest.py
diff options
context:
space:
mode:
authordlav-sc <daniil.avdeev@syntacore.com>2025-04-01 12:07:44 +0300
committerGitHub <noreply@github.com>2025-04-01 10:07:44 +0100
commitdca7e0370e9684c00d95fb810c4efd31af0a3a9f (patch)
tree90252b71adcfd7ee27fb177406805a7e2d1e3213 /lldb/packages/Python/lldbsuite/test/lldbtest.py
parent7581cb68f9fbff7a4628da594580d81a803129ee (diff)
downloadllvm-dca7e0370e9684c00d95fb810c4efd31af0a3a9f.zip
llvm-dca7e0370e9684c00d95fb810c4efd31af0a3a9f.tar.gz
llvm-dca7e0370e9684c00d95fb810c4efd31af0a3a9f.tar.bz2
[lldb] add --platform-available-ports option to the dotest.py (#112555)
This patch adds --platform-available-ports option to the dotest.py script to avoid hardcoded gdb ports in lldb testsuite. Currently, this option could be helpful in GdbRemoteTestCases (e.g. TestLldbGdbServer, TestNonStop, TestGdbRemoteThreadsInStopReply, TestGdbRemotePlatformFile, TestGdbRemote_vCont)
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/lldbtest.py')
-rw-r--r--lldb/packages/Python/lldbsuite/test/lldbtest.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/lldbtest.py b/lldb/packages/Python/lldbsuite/test/lldbtest.py
index a055314..db15a1d 100644
--- a/lldb/packages/Python/lldbsuite/test/lldbtest.py
+++ b/lldb/packages/Python/lldbsuite/test/lldbtest.py
@@ -749,6 +749,10 @@ class Base(unittest.TestCase):
"""Return absolute path to a file in the test's source directory."""
return os.path.join(self.getSourceDir(), name)
+ def getPlatformAvailablePorts(self):
+ """Return ports available for connection to a lldb server on the remote platform."""
+ return configuration.lldb_platform_available_ports
+
@classmethod
def setUpCommands(cls):
commands = [