Java: Fix buildless test HTTP server binding on macOS26

This commit is contained in:
idrissrio
2025-10-07 09:19:58 +02:00
parent e2a8d58e02
commit 5c6d187ef2

View File

@@ -4,8 +4,8 @@ import logging
def test(codeql, java):
# Each of these serves the "repo" and "repo2" directories on http://localhost:924[89]
repo_server_process = subprocess.Popen(["python3", "-m", "http.server", "9428"], cwd="repo")
repo_server_process2 = subprocess.Popen(["python3", "-m", "http.server", "9429"], cwd="repo2")
repo_server_process = subprocess.Popen(["python3", "-m", "http.server", "9428", "-b", "localhost"], cwd="repo")
repo_server_process2 = subprocess.Popen(["python3", "-m", "http.server", "9429", "-b", "localhost"], cwd="repo2")
try:
codeql.database.create(
extractor_option="buildless=true",