Skip to content

Commit 377c3d7

Browse files
Auto increase port number in lldb validation script (#2492)
1 parent 2b30bb0 commit 377c3d7

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

ci/validate_lldb.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@
3232

3333
options = parser.parse_args()
3434

35-
lldb_command_prologue = f'{options.lldb} -o "process connect -p wasm connect://127.0.0.1:{options.port}"'
3635
lldb_command_epilogue = '-o q'
3736

3837
test_cases = {
@@ -64,8 +63,13 @@ def print_process_output(p):
6463
print("Failed to get process output")
6564

6665
# Step2: Launch WAMR in debug mode and validate lldb commands
67-
wamr_cmd = f'{options.wamr} -g=127.0.0.1:{options.port} {WASM_OUT_FILE}'
66+
67+
iteration = 0
6868
for case, cmd in test_cases.items():
69+
lldb_command_prologue = f'{options.lldb} -o "process connect -p wasm connect://127.0.0.1:{int(options.port) + iteration}"'
70+
wamr_cmd = f'{options.wamr} -g=127.0.0.1:{int(options.port) + iteration} {WASM_OUT_FILE}'
71+
iteration += 1
72+
6973
has_error = False
7074
print(f'validating case [{case}] ...', end='', flush=True)
7175
lldb_cmd = f'{lldb_command_prologue} {cmd} {lldb_command_epilogue}'

0 commit comments

Comments
 (0)